How to keep appFlavor populated after a hot restart when using flutter attach
flutter attach has no --flavor option, so the resident compiler it spawns never defines FLUTTER_APP_FLAVOR and the appFlavor const collapses to null on the first hot restart. Three fixes: default-flavor in pubspec.yaml, flutter run --use-application-binary, and a platform channel that reads the flavor natively. Verified on Flutter 3.47.2 / Dart 3.13.2.