functionFromName method

AbiFunctionFragment functionFromName(
  1. String name
)

Retrieves a function fragment from the contract ABI based on its name.

Implementation

AbiFunctionFragment functionFromName(String name) =>
    functions.singleWhere((element) => element.name == name);