onTransferSingle method

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

Emitted when value tokens of token type id are transferred from from to to by operator.

Implementation

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