toString method

  1. @override
String toString()
override

Returns a string representation of this observation.

Primarily used for debugging and logging purposes.

Implementation

@override
String toString() {
  return 'Observation('
         'id: $id, '
         'species: $speciesScientificName, '
         'count: $count, '
         'location: $location, '
         'observedAt: $observedAt)';
}