copyWith method

Person copyWith({
  1. String? name,
  2. String? email,
  3. String? directoryEntry,
})

Implementation

Person copyWith({
  String? name,
  String? email,
  String? directoryEntry,
}) {
  return Person(
    name: name ?? this.name,
    email: email ?? this.email,
    directoryEntry: directoryEntry ?? this.directoryEntry,
  );
}