init method
Init is typically called right after constructor by framework.
args
- Arguments passed from parent or through Factory.
Set preventMultiInit to enable multi init / re-init
Implementation
@override
@mustCallSuper
void init(Map args) {
if (isInitialized && preventMultiInit) {
printDebug(
'controller is already initialized: ${this.runtimeType.toString()}');
return;
}
_isInitialized = true;
onInit(args);
}