CborUnsignedValue class
A class representing a CBOR (Concise Binary Object Representation) int (64-byte) value.
- Available extensions
Constructors
- CborUnsignedValue.u32(int value)
-
factory
- CborUnsignedValue.u64(dynamic value)
-
factory
Properties
- hashCode → int
-
override hashcode
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → dynamic
-
An abstract property representing the dynamic value contained in the CBOR object.
final
Methods
-
cast<
T> ([String? onError]) → T -
Available on CborObject, provided by the QuickCborObject extension
Casts the value of theCborObject
to the specified type, or throws aMessageException
if casting fails. -
castTo<
E, T> (E toe(T e)) → E -
Available on CborObject, provided by the QuickCborObject extension
Converts the value of theCborObject
to the specified typeE
using the provided functiontoe
. -
encode(
) → List< int> -
Encode the value into CBOR bytes
override
-
getInteger(
) → BigInt -
Available on CborObject, provided by the QuickCborObject extension
Converts the value stored in theCborObject
to a BigInt. -
getValue<
T> () → T -
Available on CborObject, provided by the QuickCborObject extension
Retrieves the value stored in theCborObject
as the specified typeT
. -
hasType<
T> () → bool -
Available on CborObject, provided by the QuickCborObject extension
Checks whether the value stored in theCborObject
has the specified typeT
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBigInt(
) → BigInt -
value as bigint
override
-
toCborHex(
) → String -
Encode the value into CBOR bytes an then to hex
override
-
toInt(
) → int -
value as int
override
-
toString(
) → String -
Returns the string representation of the value.
override
Operators
-
operator ==(
Object other) → bool -
override equal operation
override