PixabayMediaProvider constructor

PixabayMediaProvider({
  1. required String apiKey,
  2. String? language,
  3. bool? safeSearch,
})

Implementation

PixabayMediaProvider(
    {required this.apiKey, String? language, bool? safeSearch}) {
  this.language = language ?? 'en';
  this.safeSearch = safeSearch ?? true;

  progressStreamController = StreamController.broadcast(onCancel: () {
    _downloadStreamSub?.cancel();
  });
}