FairDelegate class
Delegate for business logic. The delegate share similar life-circle with State.
Constructors
Properties
- context → BuildContext
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- pageName → String
-
no setterinherited
- runtime ↔ Runtime?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bindAll(
Map allVariables) → Future -
绑定js端的数据,这个方法调用需要在js加载完成之后调用,否则会获取不成功
这个地方需要同步调用,因为涉及到数据的绑定,只有将所有数据绑定成功之后,
才能做接下来的操作
inherited
-
bindBaseFunc(
) → void -
inherited
-
bindBaseValue(
) → void -
inherited
-
bindFunction(
) → Map< String, Function> -
bindValue(
) → Map< String, PropertyValue> -
createValueNotifier(
dynamic key, dynamic value) → dynamic -
inherited
-
didChangeDependencies(
) → void -
didUpdateWidget(
covariant FairWidget oldWidget) → void -
dispose(
) → void -
initState(
) → void -
key(
) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyValue(
Map values) → void -
inherited
-
setRunTime(
Runtime? runtime) → void -
inherited
-
setState(
VoidCallback fn) → void - state change can rebuild the widget tree, which can lead to DSL rebuild. Usually this can cost several milliseconds depend on the complexity of DSL.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited