Principal class

Inheritance

Constructors

Principal.bytes(Uint8List bytes)
Principal.text(String text)
The text is the textual-representation of a Principal.
Principal.type_mode()
The candid library uses this constructor when creating a Principal in type_mode. Check the candid library main page documentation for more on the type_mode mode of a CandidType.

Properties

bytes Uint8List
The bytes of this Principal
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The textual-representation of this Principal
final
type_mode bool
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Same as this.text

Operators

operator ==(covariant Principal other) bool
The equality operator.
override

Static Methods

of_the_public_key_DER(Uint8List pub_key_der) Principal