onApproval method

void onApproval(
  1. void callback(
    1. String owner,
    2. String spender,
    3. BigInt value,
    4. dynamic data,
    )
)

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, dynamic data)
            callback) =>
    contract.on(
        'Approval',
        (String owner, String spender, BigNumber value, dynamic data) =>
            callback(owner, spender, value.toBigInt, convertToDart(data)));