copyWith method

Email copyWith({
  1. String? data,
  2. bool? primary,
  3. EmailType? type,
})

Implementation

Email copyWith({String? data, bool? primary, enums.EmailType? type}) {
  return Email(
      data: data ?? this.data,
      primary: primary ?? this.primary,
      type: type ?? this.type);
}