const bool inProduction = const bool.fromEnvironment("dart.vm.product");
Release环境时,inProduction为true,为生产环境;当App运行在Debug和Profile环境时,inProduction为false,为开发环境。
const bool inProduction = const bool.fromEnvironment("dart.vm.product");
Release环境时,inProduction为true,为生产环境;当App运行在Debug和Profile环境时,inProduction为false,为开发环境。