copyWith method
TeacherCompanion
copyWith({
- Value<
int> ? id, - Value<
String> ? fullName, - Value<
DateTime> ? birthday, - Value<
String> ? genderId, - Value<
String> ? teacherPositionId, - Value<
bool> ? locked, - Value<
bool> ? active, - Value<
int> ? universityId, - Value<
String?> ? countryId, - Value<
String?> ? youtubeVideoCode, - Value<
String> ? email, - Value<
String?> ? skype, - Value<
String?> ? facebook, - Value<
String?> ? phoneNumber, - Value<
String?> ? description, - Value<
String?> ? note, - Value<
String?> ? imagePath,
Implementation
TeacherCompanion copyWith({
Value<int>? id,
Value<String>? fullName,
Value<DateTime>? birthday,
Value<String>? genderId,
Value<String>? teacherPositionId,
Value<bool>? locked,
Value<bool>? active,
Value<int>? universityId,
Value<String?>? countryId,
Value<String?>? youtubeVideoCode,
Value<String>? email,
Value<String?>? skype,
Value<String?>? facebook,
Value<String?>? phoneNumber,
Value<String?>? description,
Value<String?>? note,
Value<String?>? imagePath,
}) {
return TeacherCompanion(
id: id ?? this.id,
fullName: fullName ?? this.fullName,
birthday: birthday ?? this.birthday,
genderId: genderId ?? this.genderId,
teacherPositionId: teacherPositionId ?? this.teacherPositionId,
locked: locked ?? this.locked,
active: active ?? this.active,
universityId: universityId ?? this.universityId,
countryId: countryId ?? this.countryId,
youtubeVideoCode: youtubeVideoCode ?? this.youtubeVideoCode,
email: email ?? this.email,
skype: skype ?? this.skype,
facebook: facebook ?? this.facebook,
phoneNumber: phoneNumber ?? this.phoneNumber,
description: description ?? this.description,
note: note ?? this.note,
imagePath: imagePath ?? this.imagePath,
);
}