I have a short question. I\'m looking for a way to execute code in Flutter when the app is in Debug mode. Is that possible in Flutter? I can\'t seem to find it anywhere in t
this little snippets should do what you need
bool get isInDebugMode { bool inDebugMode = false; assert(inDebugMode = true); return inDebugMode; }
if not you can configure your IDE to launch a different main.dart in debug mode where you can set a boolean.
main.dart