newOwnerEvents method

Stream<NewOwner> newOwnerEvents({
  1. BlockNum? fromBlock,
  2. BlockNum? toBlock,
})

Returns a live stream of all NewOwner events emitted by this contract.

Implementation

Stream<NewOwner> newOwnerEvents(
    {_i1.BlockNum? fromBlock, _i1.BlockNum? toBlock}) {
  final event = self.event('NewOwner');
  final filter = _i1.FilterOptions.events(
      contract: self, event: event, fromBlock: fromBlock, toBlock: toBlock);
  return client.events(filter).map((_i1.FilterEvent result) {
    final decoded = event.decodeResults(result.topics!, result.data!);
    return NewOwner(decoded);
  });
}