copyWith method
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({
int? id,
int? logInDate,
String? deviceModel,
String? location,
}) =>
UnconfirmedSession(
id: id ?? this.id,
logInDate: logInDate ?? this.logInDate,
deviceModel: deviceModel ?? this.deviceModel,
location: location ?? this.location,
);