copyWith method Null safety

RunLocation copyWith(
  1. {Map<String, dynamic>? coords,
  2. Map<String, dynamic>? activity,
  3. Map<String, dynamic>? battery,
  4. String? runId,
  5. Map<String, dynamic>? meta,
  6. bool? triggeredSplitTime,
  7. String? recordedTimestamp,
  8. String? locationServiceTimestamp,
  9. String? uuid,
  10. RunLocationOdometer? odometers}
)
inherited

Implementation

RunLocation copyWith(
    {Map<String, dynamic>? coords,
    Map<String, dynamic>? activity,
    Map<String, dynamic>? battery,
    String? runId,
    Map<String, dynamic>? meta,
    bool? triggeredSplitTime,
    String? recordedTimestamp,
    String? locationServiceTimestamp,
    String? uuid,
    RunLocationOdometer? odometers}) {
  return RunLocation(
    coords: coords ?? this.coords,
    activity: activity ?? this.activity,
    battery: battery ?? this.battery,
    runId: runId ?? this.runId,
    meta: meta ?? this.meta,
    triggeredSplitTime: triggeredSplitTime ?? this.triggeredSplitTime,
    recordedTimestamp: recordedTimestamp ?? this.recordedTimestamp,
    locationServiceTimestamp:
        locationServiceTimestamp ?? this.locationServiceTimestamp,
    uuid: uuid ?? this.uuid,
    odometers: odometers ?? this.odometers,
  );
}