CborFloat class abstract

A CBOR float.

Encoded to the least precision which can represent the value losslessly unless the user has selected half, float or double precision. If the user has selected the precision to use and the supplied value cannot be encoded in that precision then an ArgumentError is thrown.

Inheritance
Implementers

Constructors

CborFloat(double value, {List<int> tags})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
precision CborFloatPrecision
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<int>
Additional tags provided to the value.
no setterinherited
value double
no setter

Methods

doublePrecision() → void
Set double precision
encode(EncodeSink sink) → void
inherited
floatPrecision() → void
Set float(normal) precision
halfPrecision() → void
Set half precision
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({Object? substituteValue, bool allowMalformedUtf8 = false}) Object?
Transform this into a JSON encodable value.
inherited
toJsonInternal(Set<Object> cyclicCheck, ToJsonOptions o) Object?
inherited
toObject({bool parseDateTime = true, bool parseUri = true, bool decodeBase64 = false, bool allowMalformedUtf8 = false}) Object?
Transforms the CborValue into a Dart object.
inherited
toObjectInternal(Set<Object> cyclicCheck, ToObjectOptions o) Object?
inherited
toString() String
A string representation of this object.
inherited

Operators

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