copyWith method Null safety

SplitTime copyWith(
  1. {String? created,
  2. num? runTime,
  3. double? averageSpeed,
  4. num? distance,
  5. String? runId,
  6. Location? location,
  7. num? locationsCount,
  8. num? cheat,
  9. Map<String, dynamic>? meta,
  10. String? id,
  11. String? eventId}
)
inherited

Implementation

SplitTime copyWith(
    {String? created,
    num? runTime,
    double? averageSpeed,
    num? distance,
    String? runId,
    Location? location,
    num? locationsCount,
    num? cheat,
    Map<String, dynamic>? meta,
    String? id,
    String? eventId}) {
  return SplitTime(
    created: created ?? this.created,
    runTime: runTime ?? this.runTime,
    averageSpeed: averageSpeed ?? this.averageSpeed,
    distance: distance ?? this.distance,
    runId: runId ?? this.runId,
    location: location ?? this.location,
    locationsCount: locationsCount ?? this.locationsCount,
    cheat: cheat ?? this.cheat,
    meta: meta ?? this.meta,
    id: id ?? this.id,
    eventId: eventId ?? this.eventId,
  );
}