StateMutability class

Enum class representing different state mutabilities of Ethereum functions.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromName(String? name) StateMutability?
Retrieves a StateMutability instance based on its name (case-insensitive).

Constants

nonpayable → const StateMutability
Function that can modify the blockchain state but cannot receive Ether.
payable → const StateMutability
Function that can receive Ether and modify the blockchain state.
pure → const StateMutability
Function with no side effects and doesn't read from or modify the blockchain state.
values → const List<StateMutability>
List of all possible state mutabilities.
view → const StateMutability
Function that doesn't modify the blockchain state but can read from it.