class Address {
  String name;
  String mailAddress;

  const Address([this.mailAddress, this.name]);

  /// Generates an address that must conform to RFC 5322.
  /// For example, `name <foo@domain.com>`, `<foo@domain.com>`
  /// and `foo.domain.com`.
  @override
  String toString() {
    var fromName = name ?? '';
    // ToDo base64 fromName (add _IRMetaInformation as argument)
    return '$fromName <$mailAddress>';
  }
}

class Address {
  String name;
  String mailAddress;

  Address([this.mailAddress, this.name]);

  /// Generates an address that must conform to RFC 5322.
  /// For example, `name <foo@domain.com>`, `<foo@domain.com>`
  /// and `foo.domain.com`.
  @override
  String toString() {
    var fromName = name ?? '';
    // ToDo base64 fromName (add _IRMetaInformation as argument)
    return '$fromName <$mailAddress>';
  }
}

Address cannot be const as name and mailAddress are not final
fix: Address cannot be const as name and mailAddress are not final

`name` and `mailAddress` cannot be declared final in minor library version changes.
