kSimulationMode top-level constant

bool const kSimulationMode

Whether the application was compiled for the simulation flavor.

true only when the SIMULATION dart-define was set at compile time. Every generated simulation binding (spec 893, T002) guards its registration behind this constant, so the flavor switch is a single --dart-define on the build command — never hand-wired code.

Implementation

const bool kSimulationMode = bool.fromEnvironment(
  'SIMULATION',
  defaultValue: false,
);