ToastViewModel class
Constructors
- ToastViewModel.new(BuildContext context)
Properties
- context → BuildContext
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messages
↔ List<
AutoDisappearWidget> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → LiveData
-
finalinherited
Methods
-
dispose(
) → void -
释放资源
override
-
init(
) → void -
初始化状态
inherited
-
initData(
) → void -
加载数据
override
-
initState(
) → void -
状态初始化
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEvent(
Widget message, {bool long = false}) → void -
setState(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited