Skip to content

Instantly share code, notes, and snippets.

@cetorres
Created October 9, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cetorres/2cbf3f803bed98d0adba6d3acd7241d0 to your computer and use it in GitHub Desktop.
Save cetorres/2cbf3f803bed98d0adba6d3acd7241d0 to your computer and use it in GitHub Desktop.
Detect debug mode in Flutter / Dart
class DebugMode {
static bool get isInDebugMode {
bool inDebugMode = false;
assert(inDebugMode = true);
return inDebugMode;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment