SmartContractAbiStateMutabilityType class

Enum representing different state mutability types in a smart contract's ABI (Application Binary Interface).

Each mutability type has a unique value associated with it and a name for identification. The available mutability types are:

  • unknownMutabilityType: Represents an unknown state mutability type with a value of 0 and the name "UnknownMutabilityType".
  • pure: Represents a pure state mutability type with a value of 1 and the name "Pure".
  • view: Represents a view state mutability type with a value of 2 and the name "View".
  • nonpayable: Represents a nonpayable state mutability type with a value of 3 and the name "Nonpayable".
  • payable: Represents a payable state mutability type with a value of 4 and the name "Payable".
Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name associated with the state mutability 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

Constants

nonpayable → const SmartContractAbiStateMutabilityType
Represents a nonpayable state mutability type.
payable → const SmartContractAbiStateMutabilityType
Represents a payable state mutability type.
pure → const SmartContractAbiStateMutabilityType
Represents a pure state mutability type.
unknownMutabilityType → const SmartContractAbiStateMutabilityType
Represents an unknown state mutability type.
values → const List<SmartContractAbiStateMutabilityType>
List of all available state mutability types.
view → const SmartContractAbiStateMutabilityType
Represents a view state mutability type.