Use case
Pigeon is great for generating type-safe enums and model classes, but when I tried using it, I found I wanted to also put constants in my pigeons to be shared with native code.
Example use case:
For android_hardware_smoke_test (root issue #182123 ), I have a suite of integration tests which I want to run as both flutter driver tests in dart, and as Android Instrumented tests in kotlin. There are a few strings and test timeout constants which I would like to share between the dart and kotlin test scripts.
Proposal
It would be nice if I could define constants in my pigeons/messages.dart file and have them appear in the files generated by pub run pigeon.
Use case
Pigeon is great for generating type-safe enums and model classes, but when I tried using it, I found I wanted to also put constants in my pigeons to be shared with native code.
Example use case:
For android_hardware_smoke_test (root issue #182123 ), I have a suite of integration tests which I want to run as both flutter driver tests in dart, and as Android Instrumented tests in kotlin. There are a few strings and test timeout constants which I would like to share between the dart and kotlin test scripts.
Proposal
It would be nice if I could define constants in my pigeons/messages.dart file and have them appear in the files generated by
pub run pigeon.