initialize method
Initialize the state
Everytime calling this will rebuild the state and notify the listeners.
Implementation
@override
void initialize() {
final computed = runZonedGuarded(
() {
return _builder.call();
},
(error, stack) {
if (error is! AccessWhileLoadingError) {
throw error;
}
},
) ??
(Completer<T>()..completeError(AccessWhileLoadingError())).future;
state = computed!;
}