RoverPhoto class

A class representing a photo taken by the Mars rover. It requires an image source URL imgSrc and the camera that took the photo.

Constructors

RoverPhoto({required String imgSrc, required String camera})

Properties

camera String
Short name of the camera that took the photo
final
fullCameraName → dynamic
Returns the full name of the camera based on the camera short name
no setter
hashCode int
Overriding the hash code getter to generate a hash code based on the image source URL. This is used to check if a photo is already present in the list.
no setteroverride
imgSrc String
URL of the image source
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Overriding the equality operator to compare RoverPhoto objects. This is used to check if a photo is already present in the list.
override