isReadOnly property

bool get isReadOnly

Whether this function is read-only (view or pure).

Implementation

bool get isReadOnly => stateMutability == 'view' || stateMutability == 'pure';