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; _state = newState;
} }
final onUpdate_ = onUpdate; onUpdate?.call();
if (onUpdate_ != null) {
onUpdate_();
}
} }
} }

View File

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