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
These are the two steps to find out in which mode the application runs
Add the following imports for getting
import 'package:flutter/foundation.dart' as Foundation;
And kReleaseMode check which mode the application is running
if(Foundation.kReleaseMode){
print('app release mode');
} else {
print('App debug mode');
}