discontinuedPackage ic_tools has been discontinued.
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
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.