CandidType class abstract

Implementers

Constructors

CandidType()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type_mode bool
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

as_option<T extends CandidType>(CandidType option) Option<T>
Useful when deserializing an Option Response but working with Candid's subtyping rules. Candid's rules state that an Option with a non-null value can be sent as the value itself without the Option wrapping it. This function makes that check for you and returns the Option type even if the value is sent by itself for the consistency.