onApproval method

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

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),
      ),
    );