appFlavor top-level constant

String? const appFlavor

The flavor this app was built with.

This is equivalent to the value argued to the --flavor option at build time. This will be null if the --flavor option was not provided.

Implementation

const String? appFlavor = String.fromEnvironment('FLUTTER_APP_FLAVOR') != '' ?
  String.fromEnvironment('FLUTTER_APP_FLAVOR') : null;