Uint8ListKind class final

Inheritance
Mixed in types

Constructors

Uint8ListKind({String? name = 'Uint8List', IntKind? length, List<Trait>? traits})
const

Properties

dartType Type
Type T.
no setterinherited
defaultValueMirror InstanceMirror
InstanceMirror for the default value.
no setterinherited
equality → Equality
Equality for the kind;
no setteroverride
examples Iterable<Uint8List>
Examples of instances that are valid (isValidDynamic).
no setterinherited
examplesThatAreInvalid Iterable<Uint8List>
Examples of instances that are NOT valid (isValidDynamic).
no setterinherited
examplesWithoutValidation Iterable<Uint8List>
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 setterinherited
isPrimitive bool
Whether instances of the kind can't have references to other instances.
no setterinherited
jsonName String?
JSON identifier of the class.
finalinherited
length IntKind?
Length.
final
name String
Dart identifier of the class.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
traits List<Trait>
Traits of the kind.
finalinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override

Static Properties

empty Uint8List
An empty Uint8List.
final

Constants

unlimited → const Uint8ListKind
Kind for Uint8List with any length.