CborSignedValue class

A class representing a CBOR (Concise Binary Object Representation) int (64-byte) value.

Available extensions

Constructors

CborSignedValue.i32(int value)
factory
CborSignedValue.i64(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
value as bigint
final

Methods

cast<T>([String? onError]) → T

Available on CborObject, provided by the QuickCborObject extension

Casts the value of the CborObject to the specified type, or throws a MessageException if casting fails.
castTo<E, T>(E toe(T e)) → E

Available on CborObject, provided by the QuickCborObject extension

Converts the value of the CborObject to the specified type E using the provided function toe.
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 the CborObject to a BigInt.
getValue<T>() → T

Available on CborObject, provided by the QuickCborObject extension

Retrieves the value stored in the CborObject as the specified type T.
hasType<T>() bool

Available on CborObject, provided by the QuickCborObject extension

Checks whether the value stored in the CborObject has the specified type T.
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