copyWithAttribute method

MailAccount copyWithAttribute(
  1. String name,
  2. dynamic value
)

Copies this account with the attribute name and value

Compare copyWith, copyWithAlias

Implementation

MailAccount copyWithAttribute(String name, dynamic value) {
  final attributes =
      this.attributes.isEmpty ? <String, dynamic>{} : this.attributes;
  attributes[name] = value;

  return copyWith(attributes: attributes);
}