FMSearchOptions constructor

const FMSearchOptions({
  1. int? radius,
  2. List<String>? countries,
  3. int limit = 10,
  4. int maxRetries = 3,
  5. List<String> langs = const ['en'],
})

Implementation

const FMSearchOptions({
  this.radius,
  this.countries,
  this.limit = 10,
  this.maxRetries = 3,
  this.langs = const ['en'],
})  : assert(limit > 0, 'limit must be greater than 0'),
      assert(maxRetries <= 5, 'Keep maxRetries less than or equal to 5'),
      assert(
        radius == null || radius >= 10,
        'radius must be greater than or equal to 10 meters',
      );