SingleLaunchViewModel class

View Model for the summary view

Constructors

SingleLaunchViewModel({required String id, required String missionName, required String rocketName, required List<String> photos, required String launchDate, required bool clickable, required bool showTitle, required bool showImage})

Properties

clickable bool
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
launchDate String
final
missionName String
final
photos List<String>
final
rocketName String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showImage bool
final
showTitle bool
final

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
The equality operator.
inherited

Static Methods

fromPastLaunch(GetPastLaunches$Query$Launch gqlLaunch, {bool clickable = true, bool showTitle = true, bool showImage = false}) SingleLaunchViewModel
Static helper to build a ViewModel from a graphql response