If you want to remove something from code in flutter in different modes you have different constants: And then you can use it like that: if (kDebugMode) { // some code } so compiler remove this unused code in other modes.
If you want to remove something from code in flutter in different modes you have different constants: And then you can use it like that: if (kDebugMode) { // some code } so compiler remove this unused code in other modes.