Pub class
A base class for Models
Constructors
- Pub()
Properties
-
frameAspects
→ HashSet<
Object> -
Return the updated aspects of this Pub.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- publish ↔ PublishFn
-
The publish function, the setState function of the Host state.
getter/setter pair
-
regAspects
→ HashSet<
Object> -
Return all the aspects that has been registered to this Pub.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
regCon<
Model extends Pub> (Object o, CreatorFn< Model> con) → void -
Add a create method to the conMap with the key:
o
. -
regSub<
Model extends Pub> (Object o, CreatorFn< Model> sub) → void -
Add a create method to the subMap with the key:
o
. -
restoreCallback(
) → void - Clear the callback and aspects information of the model.
-
setCallback(
PublishFn publish) → void - Set callback and aspects information of the model.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
controller<
Model extends Pub> (Object mapKey, {Key? key}) → Controller< Model> -
static: Create a
Controller<Model>
bymapKey
of<Model>
. -
dummyCallback(
[Object? aspects]) → void -
Used before
Host
init state for models. -
getModel<
Model extends Pub> () → Model - static: Get the model.
-
model<
Model extends Pub> () → Model - static: Get the model, the same as getModel
-
sub<
Model extends Pub> (Object mapKey, {Key? key}) → SubscriberAuto< Model> -
static: Create a
Subscriber<Model>
widget bymapKey
of<Model>
.