FloatKind class final

Kind for double.

Inheritance
Mixed in types

Constructors

FloatKind({bool nonFinite = false, bool negativeZeroes = false, double? min, double? max, bool isExclusiveMin = false, bool isExclusiveMax = false, List<Trait>? traits})
A finite 64-bit floating-point integer.
const
FloatKind.bfloat16({double? min, double? max, bool isExclusiveMin = false, bool isExclusiveMax = false, List<Trait>? traits})
Raw "bfloat16" 16-bit floating-point value (including NaN, Infinity, -Infinity, and -0.0).
const
FloatKind.float32({double? min, double? max, bool isExclusiveMin = false, bool isExclusiveMax = false, List<Trait>? traits})
Raw 32-bit floating-point value (including NaN, Infinity, -Infinity, and -0.0).
const
FloatKind.float64({double? min, double? max, bool isExclusiveMin = false, bool isExclusiveMax = false, List<Trait>? traits})
Raw 64-bit floating-point value (including NaN, Infinity, -Infinity, and -0.0).
const

Properties

bits int
Maximum number of bits.
final
dartType Type
Type T.
no setterinherited
defaultValueMirror InstanceMirror
InstanceMirror for the default value.
no setterinherited
equality → Equality
Equality for the kind;
no setterinherited
examples Iterable<double>
Examples of instances that are valid (isValidDynamic).
no setterinherited
examplesThatAreInvalid Iterable<double>
Examples of instances that are NOT valid (isValidDynamic).
no setterinherited
examplesWithoutValidation Iterable<double>
Interesting examples of instances (may be valid or invalid).
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
isExclusiveMax bool
Whether the maximum value is exclusive.
final
isExclusiveMin bool
Whether the minimum value is exclusive.
final
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
max double?
Maximum value.
final
min double?
Minimum value.
final
name String
Dart identifier of the class.
no setterinherited
negativeZeroes bool
Whether negatives zeroes (-0.0) are allowed.
final
nonFinite bool
Whether non-finite values are allowed.
final
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) double
Casts value to T.
inherited
checkDeclaration() → void
Checks that the declaration makes sense.
inherited
checkInstance(Object? value) → void
inherited
checkValid(double instance) → void
inherited
checkValidDynamic(Object? instance) → void
Throws ArgumentError error if instance is not valid (isValidDynamic).
inherited
clone(double instance) double
Clones the instance.
inherited
compare(double left, double right) int
Compares two values.
inherited
debugString(double instance) String
Constructs a string for debugging instance.
override
decodeJsonTree(Object? json) double
Converts json (any JSON tree) to an instance of T.
override
decodeString(String string) double
Decodes string to an instance of T.
override
encodeJsonTree(double instance) Object?
Converts instance to a JSON tree.
override
encodeString(double 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(double instance) bool
Tells whether the instance is valid.
override
isValidDynamic(Object? instance) bool
Tells whether the instance is valid.
inherited
memorySize(double value) int
Estimates memory usage of instance.
inherited
memorySizeWith(MemoryCounter counter, double value) → void
Estimates memory usage with an instance of MemoryCounter.
inherited
newInstance() double
Constructs a new instance of the default value.
override
newList(int length, {bool growable = true}) List<double>
Constructs a new list.
override
newListFrom(Iterable<double> iterable, {bool growable = true}) List<double>
Constructs a new list from iterable.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
permute(double instance) double
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<double>>
Constructs Kind for List<T>.
inherited
toNonNullable() Kind<double>
Returns a non-nullable kind.
inherited
toNullable() Kind<double?>
Constructs Kind for T?.
inherited
toPolymorphic() PolymorphicKind<double>
Constructs a PolymorphicKind for this kind.
inherited
toSet() Kind<Set<double>>
Constructs Kind for Set<T>.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

kindForKind → const ImmutableKind<FloatKind>
Kind for IntKind.
minWhenFloat64 → const double