registerEventHandler method

  1. @override
void registerEventHandler({
  1. required String chainId,
  2. required String event,
  3. dynamic handler(
    1. String,
    2. dynamic
    )?,
})
override

Implementation

@override
void registerEventHandler({
  required String chainId,
  required String event,
  dynamic Function(String, dynamic)? handler,
}) {
  _checkInitialized();
  _eventHandlers[_getRegisterKey(chainId, event)] = handler;
}