Model class abstract
Model は、immutable なものとして定義しなければならない。 つまり、immutable な、property のみで定義をする。
Model を extends した class が行うこと 1.get haseCode を ovveride する。 2.== operator を override する。 ・・・ IterableBase
memo const constructor は、constructor に body を持てない。 => const Model(){ validation() } ができない。 => const Model(): assert(...); はできる。 const constructor を実装する class は、事前に value に入る値が決められるもの。 const constructor を実装することにより、その instance は、method などの、引数のデフォルトに利用できるようになる。
data を wrap した Material.
Constructors
- Model()
-
const
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited