1. override
String toString()

Returns a string representation of this object.

Source

@override
String toString() {
  var result = "AggregateError: $message";
  errors.forEach((error) => result = "$result | $error");
  return result;
}