EventLocation constructor

const EventLocation({
  1. required String title,
  2. String? address,
  3. double? latitude,
  4. double? longitude,
  5. double? radius,
  6. String? notes,
})

Implementation

const EventLocation({
  required this.title,
  this.address,
  this.latitude,
  this.longitude,
  this.radius,
  this.notes,
})  : assert(latitude == null || (latitude >= -90 && latitude <= 90),
          'Latitude must be between -90 and 90'),
      assert(longitude == null || (longitude >= -180 && longitude <= 180),
          'Longitude must be between -180 and 180'),
      assert(radius == null || radius > 0, 'Radius must be positive');