onTransferBatch method

void onTransferBatch(
  1. void callback(
    1. String operator,
    2. String from,
    3. String to,
    4. Event event,
    )
)

Equivalent to multiple TransferSingle events, where operator, from and to are the same for all transfers.

Implementation

void onTransferBatch(
  void Function(
    String operator,
    String from,
    String to,
    Event event,
  )
      callback,
) =>
    contract.on(
      'TransferBatch',
      (String operator, String from, String to, dynamic data) => callback(
        operator,
        from,
        to,
        Event.fromJS(data),
      ),
    );