BaseModel<St> class Null safety

Don't use, this is deprecated. Please, use the recommended Vm class. This should only be used for IMMUTABLE classes. Lets you implement equals/hashcode without having to override these methods.

Constructors

BaseModel({List<Object?> equals = const [], Object? widget})
The constructor takes an optional List of fields which will be used to determine whether two BaseModel are equal.

Properties

dispatch Dispatch<St>?
read-only
dispatchFuture DispatchFuture<St>?
read-only
equals List<Object?>
The List of properties which will be used to determine whether two BaseModels are equal.
final
getAndRemoveFirstError → (UserException? Function?()?)
read-only
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state → St
read-only
widget Object?
You can pass the connector widget, in case the view-model needs any info from it.
final

Methods

fromStore() BaseModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override