IaBaseCallbacks constructor
- required List<
IaBaseCallbackHandler> handlers,
Constructs a new instance of the callback handler class,
adding a subscriber instance to the static _subscribers collection.
Implementation
IaBaseCallbacks({
required this.handlers,
}) {
for (final subscriber in _subscribers) {
for (final handler in handlers) {
if (subscriber.handlers.where(
(subscriberHandler) {
return subscriberHandler.methodId == handler.methodId;
},
).isNotEmpty) {
debugPrint('Duplicate handler method found: ${handler.methodId}.');
}
}
}
_subscribers.add(this);
}