BavestRestClient constructor

BavestRestClient(
  1. String apiKey
)

The BavestRestClient factory constructor is used to create a singleton instance of the BavestRestClient class.

Implementation

factory BavestRestClient(String apiKey) {
  _instance ??= BavestRestClient._internal(apiKey);
  return _instance!;
}