PermissionType class

Enum representing different types of permissions within a Tron account.

The available permission types are:

  • owner: Represents the owner permission of a Tron account.
  • witness: Represents the witness permission of a Tron account.
  • active: Represents the active permission of a Tron account
Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name associated with the permission type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The unique value associated with each enumeration instance.
final

Methods

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

Operators

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

Static Methods

fromName(String? name, {PermissionType? defaultPermission}) PermissionType
Returns the PermissionType associated with the given name.
fromValue(int? value, {PermissionType? defaultPermission}) PermissionType
Returns the PermissionType associated with the given value.

Constants

active → const PermissionType
Represents the active permission of a Tron account.
owner → const PermissionType
Represents the owner permission of a Tron account.
values → const List<PermissionType>
List of all available permission types.
witness → const PermissionType
Represents the witness permission of a Tron account.