toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  var result = StringBuffer();
  result.write('Name: ${name}\n');
  result.write('Latitude: ${lat}\n');
  result.write('Longitude: ${lon}\n');
  result.write('Name Cured: ${nameCured}');
  return result.toString();
}