PropositionType class
- Annotations
-
- @JsonSerializable(checked: true, explicitToJson: true)
Constructors
- PropositionType(String propositionName, int propositionPrefix)
-
const
- PropositionType.curve25519()
-
factory
- PropositionType.ed25519()
-
factory
-
PropositionType.fromJson(Map<
String, dynamic> json) -
A necessary factory constructor for creating a new PropositionType instance
from a map. Pass the map to the generated
_$PropositionTypeFromJson()
constructor. The constructor is named after the source class, in this case, PropositionType.factory - PropositionType.fromName(String name)
-
factory
- PropositionType.fromPrefix(NetworkId prefix)
-
factory
- PropositionType.thresholdCurve25519()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- propositionName → String
-
the string representation of the proposition
final
- propositionPrefix → int
-
the prefix of this proposition in hex
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toJson
is the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method_$PropositionTypeToJson
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited