onInit method Null safety
override
Restores previously saved value if storage is set
Implementation
@override
Future<void> onInit() async {
if (storage != null) {
await handleStoredModel();
}
super.onInit();
}
Restores previously saved value if storage is set
@override
Future<void> onInit() async {
if (storage != null) {
await handleStoredModel();
}
super.onInit();
}