LifeCycleListener class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onDispose()
→ void
-
Event callback when the view disposed.
-
onInit()
→ void
-
- 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.
-
onPause()
→ void
-
Event callback when the application is not currently visible to the user, not responding to
user input, and running in the background.
-
onResume()
→ void
-
Event callback when the application is visible and responding to user input.
-
toString()
→ String
-
A string representation of this object.
inherited