GmhSearchParams constructor

const GmhSearchParams({
  1. LatLng? loc,
  2. String? lang,
  3. int? radius,
  4. int limit = 10,
  5. String? countryCode,
  6. String? directionsKey,
  7. required String apiKey,
  8. bool strictBounds = false,
})

Parameters for Google Map Helper search functionality.

Implementation

const GmhSearchParams({
  this.loc,
  this.lang,
  this.radius,
  this.limit = 10,
  this.countryCode,
  this.directionsKey,
  required this.apiKey,
  this.strictBounds = false,
})  : assert(limit > 0, 'limit must be greater than 0'),
      assert(radius == null || radius > 0, 'radius must be greater than 0'),
      assert(
        radius == null || radius <= 50000,
        'radius cannot be greater than 50000',
      );