register method

  1. @override
void register(
  1. List<MineralEventContract> events
)

Implementation

@override
void register (List<MineralEventContract> events) {
  for (final event in List<MineralEvent>.from(events)) {
    if (_events.containsKey(event.listener)) {
      _events.get(event.listener)?.add(event);
    } else {
      _events.putIfAbsent(event.listener, () => [event]);
    }
  }
}