event method

ContractEvent event(
  1. String name
)

Finds the event defined by the contract that has the matching name.

If no, or more than one event matches that name, this method will throw.

Implementation

ContractEvent event(String name) => events.singleWhere((e) => e.name == name);