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