ValuePattern<VT extends Object> mixin

VT ・・・ ValueType

runtime constant(実行時定数, 修飾子は final) な値を 1つ(value) だけ持つ class.

1.String toString() を適切な 文字列が返されるように override する。value.toString() で適切な文字列が返されるなら override の必要なし。

Implemented types

Properties

hashCode int
The hash code for this object.
no setteroverride
properties Map<String, Object>
inactivate(), = operator, [] operator, など に依存されている.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → VT
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
ここでの toJson とは json へ encode 可能な形式へ変換するという意味で使われる.
つまり json string を返すというわけではない.
また serialize としても利用するため deserialize 可能でなければならない.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
runtimeType と toString() の値を比較する。 runtimeType が異なれば false. super class であっても fasle となる. operator == method - Object class - dart:core library - Dart API: "https://api.dart.dev/stable/2.15.1/dart-core/Object/operator_equals.html"
override