Location constructor

const Location(
  1. double latitude,
  2. double longitude, {
  3. String? provider,
  4. double? altitude,
  5. double? accuracy,
  6. double? course,
  7. double? speed,
  8. int? timestamp,
})

Creates an object of the Location class with the specified parameters. The parameters latitude, longitude are required.

Implementation

const Location(this.latitude, this.longitude,
    {this.provider,
    this.altitude,
    this.accuracy,
    this.course,
    this.speed,
    this.timestamp});