copyWith method
UnconfirmedSession
copyWith({
- SessionType? type,
- int? date,
- String? deviceModel,
- String? location,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
UnconfirmedSession copyWith({
SessionType? type,
int? date,
String? deviceModel,
String? location,
}) => UnconfirmedSession(
type: type ?? this.type,
date: date ?? this.date,
deviceModel: deviceModel ?? this.deviceModel,
location: location ?? this.location,
);