call method

Future<void> call(
  1. String? userId
)

Invokes a registered callback. userId is required.

Implementation

Future<void> call(String? userId) {
  return Future.wait(
    _callbacks
        .mapAndRemoveEmpty((element) async => await element.call(userId)),
  );
}