refactor: use more ?.

This commit is contained in:
Lukas Lihotzki 2021-09-30 15:10:18 +02:00
parent 71e5ec1bb5
commit 41d905ca60
2 changed files with 2 additions and 8 deletions

View File

@ -591,10 +591,7 @@ class Bootstrap {
_state = newState;
}
final onUpdate_ = onUpdate;
if (onUpdate_ != null) {
onUpdate_();
}
onUpdate?.call();
}
}

View File

@ -620,10 +620,7 @@ class KeyVerification {
state = newState;
}
final onUpdate = this.onUpdate;
if (onUpdate != null) {
onUpdate();
}
onUpdate?.call();
}
}