StateMutability class
Enum class representing different state mutabilities of Ethereum functions.
Properties
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.