GmhSearchParams constructor

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

Parameters for Google Map Helper search functionality.

Implementation

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