isReleaseMode method

bool isReleaseMode()

Check if running in release/production environment

Implementation

bool isReleaseMode() {
  return const bool.fromEnvironment('dart.vm.product', defaultValue: false);
}