copyWith method

RSA copyWith({
  1. Report? report,
  2. Mechanic? mechanic,
  3. TowProvider? provider,
  4. RSAStates? state,
  5. String? problemDescription,
  6. List<Mechanic>? nearbyMechanics,
  7. List<TowProvider>? nearbyProviders,
  8. CustomLocation? location,
  9. String? rsaID,
  10. Client? user,
  11. DateTime? estimatedTime,
  12. CustomLocation? dropOffLocation,
  13. Car? car,
  14. RequestType? requestType,
})

Implementation

RSA copyWith({
  Report? report,
  Mechanic? mechanic,
  TowProvider? provider,
  RSAStates? state,
  String? problemDescription,
  List<Mechanic>? nearbyMechanics,
  List<TowProvider>? nearbyProviders,
  CustomLocation? location,
  String? rsaID,
  Client? user,
  DateTime? estimatedTime,
  CustomLocation? dropOffLocation,
  Car? car,
  RequestType? requestType,
}) =>
    RSA(
      report: report ?? _report,
      mechanic: mechanic ?? _mechanic,
      towProvider: provider ?? _towProvider,
      state: state ?? _state,
      problemDescription: problemDescription ?? _problemDescription,
      nearbyMechanics: nearbyMechanics ?? _nearbyMechanics,
      nearbyProviders: nearbyProviders ?? _nearbyProviders,
      location: location ?? _location,
      rsaID: rsaID ?? _rsaID,
      user: user ?? _user,
      estimatedTime: estimatedTime ?? _estimatedTime,
      dropOffLocation: dropOffLocation ?? _dropOffLocation,
      car: car ?? _car,
      requestType: requestType ?? _requestType,
    );