Skip to content

A simple hack to check if Flutter app is in debug mode

License

Notifications You must be signed in to change notification settings

SachinGanesh/debug_mode

Repository files navigation

debug_mode

A simple hack to check if Flutter app is in debug mode

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

Example

if(DebugMode.isInDebugMode){
    // DEBUG Mode
}

About

A simple hack to check if Flutter app is in debug mode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published