copyWith method

Student copyWith({
  1. int? id,
  2. String? studentId,
  3. Value<String?> name = const Value.absent(),
})

Implementation

Student copyWith({
  int? id,
  String? studentId,
  Value<String?> name = const Value.absent(),
}) => Student(
  id: id ?? this.id,
  studentId: studentId ?? this.studentId,
  name: name.present ? name.value : this.name,
);