copyWith method

LocationModel copyWith({
  1. double? long,
  2. double? lat,
  3. num? heading,
})

Implementation

LocationModel copyWith({
  double? long,
  double? lat,
  num? heading,
}) =>
    LocationModel(
      long: long ?? this.long,
      lat: lat ?? this.lat,
      heading: heading ?? this.heading,
    );