Created
October 9, 2019 16:47
-
-
Save cetorres/2cbf3f803bed98d0adba6d3acd7241d0 to your computer and use it in GitHub Desktop.
Detect debug mode in Flutter / Dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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