copyWith method
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,
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,
);