copyWith method Null safety
- {String? id,
- bool? isRaceDay,
- num? distance,
- double? averageSpeed,
- String? userId,
- RunState? state,
- Map<
String, dynamic> ? meta, - num? timezoneOffset,
- String? end,
- Map<
String, dynamic> ? deviceInformations, - String? eventId,
- String? created}
inherited
Implementation
Run copyWith(
{String? id,
bool? isRaceDay,
num? distance,
double? averageSpeed,
String? userId,
RunState? state,
Map<String, dynamic>? meta,
num? timezoneOffset,
String? end,
Map<String, dynamic>? deviceInformations,
String? eventId,
String? created}) {
return Run(
id: id ?? this.id,
isRaceDay: isRaceDay ?? this.isRaceDay,
distance: distance ?? this.distance,
averageSpeed: averageSpeed ?? this.averageSpeed,
userId: userId ?? this.userId,
state: state ?? this.state,
meta: meta ?? this.meta,
timezoneOffset: timezoneOffset ?? this.timezoneOffset,
end: end ?? this.end,
deviceInformations: deviceInformations ?? this.deviceInformations,
eventId: eventId ?? this.eventId,
created: created ?? this.created,
);
}