Base class for delegating kind implementations such as AliasKind
.
- Implemented types
-
- Kind<
T>
- Kind<
- Implementers
Constructors
-
DelegatingKind(Kind<
T> wrappedKind) -
const
Properties
- dartType → Type
-
Type
T
.no setteroverride - defaultValueMirror → InstanceMirror
-
InstanceMirror for the default value.
no setteroverride
- equality → Equality
-
Equality for the kind;
no setteroverride
-
examples
→ Iterable<
T> -
Examples of instances that are valid (isValidDynamic).
no setteroverride
-
examplesThatAreInvalid
→ Iterable<
T> -
Examples of instances that are NOT valid (isValidDynamic).
no setteroverride
-
examplesWithoutValidation
→ Iterable<
T> -
Interesting examples of instances (may be valid or invalid).
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNullable → bool
-
Whether this kind is nullable.
no setteroverride
- isPrimitive → bool
-
Whether instances of the kind can't have references to other instances.
no setteroverride
- jsonName → String?
-
JSON identifier of the class.
no setteroverride
- name → String
-
Dart identifier of the class.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
traits
→ List<
Trait> -
Traits of the kind.
no setteroverride
-
wrappedKind
→ Kind<
T> -
final
Methods
-
asType(
Object? value) → T -
Casts
value
toT
.override -
checkDeclaration(
) → void -
Checks that the declaration makes sense.
override
-
checkInstance(
Object? value) → void -
override
-
checkValid(
T instance) → void -
override
-
checkValidDynamic(
Object? instance) → void -
Throws ArgumentError error if
instance
is not valid (isValidDynamic).override -
clone(
T instance) → T -
Clones the instance.
override
-
compare(
T left, T right) → int -
Compares two values.
override
-
debugString(
T instance) → String -
Constructs a string for debugging
instance
.override -
decodeJsonTree(
Object? json) → T -
Converts
json
(any JSON tree) to an instance ofT
.override -
decodeString(
String string) → T -
Decodes
string
to an instance ofT
.override -
encodeJsonTree(
T instance) → Object? -
Converts
instance
to a JSON tree.override -
encodeString(
T instance) → String -
Converts
instance
to a string.override -
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
.override -
isInstanceOfList(
Object? instance) → bool -
Determines whether the argument is an instance of
List<T>
.override -
isInstanceOfSet(
Object? instance) → bool -
Determines whether the argument is an instance of
Set<T>
.override -
isNullableSubKind(
Kind other, {bool andNotEqual = true}) → bool -
Tells whether the argument is instance of
Kind<T>
and dartType values are different.override -
isSubKind(
Kind other, {bool andNotEqual = true}) → bool -
Tells whether the argument is instance of
Kind<T>
and dartType values are different.override -
isValid(
T instance) → bool -
Tells whether the instance is valid.
override
-
isValidDynamic(
Object? instance) → bool -
Tells whether the instance is valid.
override
-
memorySize(
T instance) → int -
Estimates memory usage of
instance
.override -
memorySizeWith(
MemoryCounter counter, T instance) → void -
Estimates memory usage with an instance of MemoryCounter.
override
-
newInstance(
) → T -
Constructs a new instance of the default value.
override
-
newList(
int length, {bool growable = true}) → List< T> -
Constructs a new list.
override
-
newListFrom(
Iterable< T> iterable, {bool growable = true}) → List<T> -
Constructs a new list from
iterable
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
permute(
T instance) → T -
Generates another instance with some deterministic function.
override
-
register(
) → void -
Registers this kind so that it will be visible in Kind.all.
override
-
toList(
) → Kind< List< T> > -
Constructs Kind for
List<T>
.override -
toNonNullable(
) → Kind< T> -
Returns a non-nullable kind.
override
-
toNullable(
) → Kind< T?> -
Constructs Kind for
T?
.override -
toPolymorphic(
) → PolymorphicKind< T> -
Constructs a PolymorphicKind for this kind.
override
-
toSet(
) → Kind< Set< T> > -
Constructs Kind for
Set<T>
.override -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override