copyWith method

TMC copyWith({
  1. int? distance,
  2. List<LatLng>? polyline,
  3. String? status,
})

Implementation

TMC copyWith({
  int? distance,
  List<LatLng>? polyline,
  String? status,
}) {
  return TMC(
    distance: distance ?? this.distance,
    polyline: polyline ?? this.polyline,
    status: status ?? this.status,
  );
}