A simple hack to check if Flutter app is in debug mode
More...
In debug mode the
the Dart assert statement is enabled, and the Flutter framework uses this to perform many runtime checks verifying that invariants are not being violated.
Source
if(DebugMode.isInDebugMode){ // DEBUG Mode }
dsi.dev
Repository (GitHub)View/report issues
MIT (license)
flutter
Packages that depend on debug_mode
Back