call method

Future<List<T>> call({
  1. DynamicMap? parameters,
})

Functions can be called to retrieve the data.

You can specify the Post data to be called in parameters.

Implementation

Future<List<T>> call({DynamicMap? parameters}) async {
  await FirebaseCore.initialize();
  await onLoad();
  final res = await functions
      .httpsCallable(endpoint.split("/").last)
      .call<List>(parameters);
  onCatchResponse(res);
  final data = fromCollection(filterOnCall(fromResponse(res.data)));
  addAll(data);
  notifyListeners();
  await onDidLoad();
  return this;
}