We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const isPro = bool.fromEnvironment('dart.vm.product'); //是否release模式
The text was updated successfully, but these errors were encountered:
这个是判断flutter打出来的包是release包还是运行起来的环境是release环境。
Sorry, something went wrong.
运行时的环境, 是不是release
高版本 已经有 const bool kReleaseMode = bool.fromEnvironment('dart.vm.product');直接调用这个属性即可。同理还有kDebugMode。
No branches or pull requests
const isPro = bool.fromEnvironment('dart.vm.product'); //是否release模式
The text was updated successfully, but these errors were encountered: