menu
mvvm_bloc package
documentation
view.dart
View<BC extends ViewModel>
onInit method
onInit method
dark_mode
light_mode
onInit
method
@
override
void
onInit
(
)
override
Event callback after
ViewModel
is constructed.
The event is called by default every time the
ViewModel
view dependencies are updated.
Set
initOnce
of the
MVVM
as
true
to ignore dependencies updates.
Implementation
@override void onInit() { // TODO: implement onInit }
mvvm_bloc package
documentation
view
View<BC extends ViewModel>
onInit method
View class