Migrate persistent_tool_state to null safety (#80085)

This commit is contained in:
Jenn Magder
2021-04-08 19:14:03 -07:00
committed by GitHub
parent 4cf0465bae
commit 4a730509fc
7 changed files with 56 additions and 53 deletions

View File

@@ -61,10 +61,10 @@ class FirstRunMessenger {
/// that the license terms are not printed during a `flutter upgrade`, until the
/// user manually runs the tool.
bool shouldDisplayLicenseTerms() {
if (_persistentToolState.redisplayWelcomeMessage == false) {
if (_persistentToolState.shouldRedisplayWelcomeMessage == false) {
return false;
}
final String oldHash = _persistentToolState.lastActiveLicenseTerms;
final String oldHash = _persistentToolState.lastActiveLicenseTermsHash;
return oldHash != _currentHash;
}