isPayable property
bool
get
isPayable
Returns true if this function can be used to send Ether to a smart contract that the contract will actually keep. Normally, all Ether sent with a transaction will be used to pay for gas fees and the rest will be sent back. Here however, the Ether (minus the fees) will be kept by the contract.
Implementation
bool get isPayable => mutability == StateMutability.payable;