StaticImage constructor

StaticImage({
  1. String? apiKey,
})

If apiKey is not provided here then it must be provided MapBoxSearch()

Implementation

StaticImage({
  String? apiKey,
})  :

      /// Assert that the [apiKey] and [MapBoxSearch._apiKey] are not null at same time
      assert(
        apiKey != null || MapBoxSearch.apiKey != null,
        'The API Key must be provided',
      ),
      _apiKey = apiKey ?? MapBoxSearch.apiKey!;