refactor: use more ?.
This commit is contained in:
parent
71e5ec1bb5
commit
41d905ca60
|
|
@ -591,10 +591,7 @@ class Bootstrap {
|
|||
_state = newState;
|
||||
}
|
||||
|
||||
final onUpdate_ = onUpdate;
|
||||
if (onUpdate_ != null) {
|
||||
onUpdate_();
|
||||
}
|
||||
onUpdate?.call();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -620,10 +620,7 @@ class KeyVerification {
|
|||
state = newState;
|
||||
}
|
||||
|
||||
final onUpdate = this.onUpdate;
|
||||
if (onUpdate != null) {
|
||||
onUpdate();
|
||||
}
|
||||
onUpdate?.call();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue