init method
Implementation
@override
Future<void> init({T? payload}) async {
if (_initialized) {
logger.e(
"InitializerLifecycle: Trying to init $runtimeType several times");
return;
}
try {
await doInit(payload: payload);
_initialized = true;
} catch (error, stackTrace) {
logger.error(
"InitializerLifecycle: $runtimeType, $error",
error: error,
stackTrace: stackTrace,
);
}
}