toString method

  1. @override
String toString()
override
Returns a

Implementation

@override
String toString() {
  if (this.IsValid) {
    if (this.FolderName != null) {
      if ((this.Mailbox != null) && mailbox!.IsValid) {
        return "$FolderName ($Mailbox)";
      } else {
        return this.FolderName.toString();
      }
    } else {
      return super.toString();
    }
  } else {
    return "";
  }
}