MapKind<K, V> class
final
Methods
-
asType(Object? value)
→ Map<K, V>
-
Casts
value
to T
.
inherited
-
checkDeclaration()
→ void
-
Checks that the declaration makes sense.
inherited
-
checkInstance(Object? value)
→ void
-
inherited
-
checkValid(Map<K, V> instance)
→ void
-
override
-
checkValidDynamic(Object? instance)
→ void
-
Throws ArgumentError error if
instance
is not valid (isValidDynamic).
inherited
-
clone(Map<K, V> instance)
→ Map<K, V>
-
Clones the instance.
override
-
compare(Map<K, V> left, Map<K, V> right)
→ int
-
Compares two values.
override
-
debugString(Map<K, V> instance)
→ String
-
Constructs a string for debugging
instance
.
override
-
decodeJsonTree(Object? json)
→ Map<K, V>
-
Converts
json
(any JSON tree) to an instance of T
.
override
-
decodeString(String string)
→ Map<K, V>
-
Decodes
string
to an instance of T
.
inherited
-
encodeJsonTree(Map<K, V> instance)
→ Object?
-
Converts
instance
to a JSON tree.
override
-
encodeString(Map<K, V> instance)
→ String
-
Converts
instance
to a string.
inherited
-
isDefaultValue(Object? instance)
→ bool
-
Determines whether the argument is a default value of this kind.
override
-
isInstance(Object? instance)
→ bool
-
Determines whether the argument is an instance of
T
.
inherited
-
isInstanceOfList(Object? instance)
→ bool
-
Determines whether the argument is an instance of
List<T>
.
inherited
-
isInstanceOfSet(Object? instance)
→ bool
-
Determines whether the argument is an instance of
Set<T>
.
inherited
-
isNullableSubKind(Kind other, {bool andNotEqual = true})
→ bool
-
Tells whether the argument is instance of
Kind<T>
and dartType
values are different.
inherited
-
isSubKind(Kind other, {bool andNotEqual = true})
→ bool
-
Tells whether the argument is instance of
Kind<T>
and dartType
values are different.
inherited
-
isValid(Map<K, V> instance)
→ bool
-
Tells whether the instance is valid.
override
-
isValidDynamic(Object? instance)
→ bool
-
Tells whether the instance is valid.
inherited
-
memorySize(Map<K, V> instance)
→ int
-
Estimates memory usage of
instance
.
inherited
-
memorySizeWith(MemoryCounter counter, Map<K, V> instance)
→ void
-
Estimates memory usage with an instance of MemoryCounter.
override
-
newInstance()
→ Map<K, V>
-
Constructs a new instance of the default value.
override
-
newList(int length, {bool growable = true})
→ List<Map<K, V>>
-
Constructs a new list.
inherited
-
newListFrom(Iterable<Map<K, V>> iterable, {bool growable = true})
→ List<Map<K, V>>
-
Constructs a new list from
iterable
.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
permute(Map<K, V> instance)
→ Map<K, V>
-
Generates another instance with some deterministic function.
override
-
register()
→ void
-
Registers this kind so that it will be visible in Kind.all.
inherited
-
toList()
→ Kind<List<Map<K, V>>>
-
Constructs Kind for
List<T>
.
inherited
-
toNonNullable()
→ Kind<Map<K, V>>
-
Returns a non-nullable kind.
inherited
-
toNullable()
→ Kind<Map<K, V>?>
-
Constructs Kind for
T?
.
inherited
-
toPolymorphic()
→ PolymorphicKind<Map<K, V>>
-
Constructs a PolymorphicKind for this kind.
inherited
-
toSet()
→ Kind<Set<Map<K, V>>>
-
Constructs Kind for
Set<T>
.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited