Tuple2Kind<T0, T1> class
final
- Inheritance
-
- Mixed-in types
-
Methods
-
asType(Object? value)
→ (T0, T1)
-
Casts
value
to T
.
inherited
-
checkDeclaration()
→ void
-
Checks that the declaration makes sense.
inherited
-
checkInstance(Object? value)
→ void
-
inherited
-
checkValid((T0, T1) instance)
→ void
-
override
-
checkValidDynamic(Object? instance)
→ void
-
Throws ArgumentError error if
instance
is not valid (isValidDynamic).
inherited
-
clone((T0, T1) instance)
→ (T0, T1)
-
Clones the instance.
inherited
-
compare((T0, T1) left, (T0, T1) right)
→ int
-
Compares two values.
override
-
debugString((T0, T1) instance)
→ String
-
Constructs a string for debugging
instance
.
inherited
-
decodeJsonTree(Object? json)
→ (T0, T1)
-
Converts
json
(any JSON tree) to an instance of T
.
override
-
decodeString(String string)
→ (T0, T1)
-
Decodes
string
to an instance of T
.
inherited
-
encodeJsonTree((T0, T1) instance)
→ Object?
-
Converts
instance
to a JSON tree.
override
-
encodeString((T0, T1) instance)
→ String
-
Converts
instance
to a string.
inherited
-
isDefaultValue(Object? instance)
→ bool
-
Determines whether the argument is a default value of this kind.
inherited
-
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((T0, T1) instance)
→ bool
-
Tells whether the instance is valid.
override
-
isValidDynamic(Object? instance)
→ bool
-
Tells whether the instance is valid.
inherited
-
memorySize((T0, T1) value)
→ int
-
Estimates memory usage of
instance
.
inherited
-
memorySizeWith(MemoryCounter counter, (T0, T1) value)
→ void
-
Estimates memory usage with an instance of MemoryCounter.
inherited
-
newInstance()
→ (T0, T1)
-
Constructs a new instance of the default value.
override
-
newList(int length, {bool growable = true})
→ List<(T0, T1)>
-
Constructs a new list.
inherited
-
newListFrom(Iterable<(T0, T1)> iterable, {bool growable = true})
→ List<(T0, T1)>
-
Constructs a new list from
iterable
.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
permute((T0, T1) instance)
→ (T0, T1)
-
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<(T0, T1)>>
-
Constructs Kind for
List<T>
.
inherited
-
toNonNullable()
→ Kind<(T0, T1)>
-
Returns a non-nullable kind.
inherited
-
toNullable()
→ Kind<(T0, T1)?>
-
Constructs Kind for
T?
.
inherited
-
toPolymorphic()
→ PolymorphicKind<(T0, T1)>
-
Constructs a PolymorphicKind for this kind.
inherited
-
toSet()
→ Kind<Set<(T0, T1)>>
-
Constructs Kind for
Set<T>
.
inherited
-
toString()
→ String
-
A string representation of this object.
override