copyWith method

UnconfirmedSession copyWith({
  1. int? id,
  2. int? logInDate,
  3. String? deviceModel,
  4. 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({
  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,
    );