onApproval method
Emitted when the allowance of a spender
for an owner
is set by a call to approve
.
value
is the new allowance.
Implementation
void onApproval(
void Function(
String owner,
String spender,
BigInt value,
Event event,
)
callback,
) =>
contract.on(
'Approval',
(String owner, String spender, BigNumber value, dynamic data) =>
callback(
owner,
spender,
value.toBigInt,
Event.fromJS(data),
),
);