menu
mvvm_bloc package
documentation
vm.dart
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 onBuild }
mvvm_bloc package
documentation
vm
ViewModel
onInit method
ViewModel class