SpaceViewModel class

View Model for the Space Clock

Constructors

SpaceViewModel({required double moonRotation, required double moonSize, required double sunRotation, required double sunSize, required Offset sunOffset, required double sunBaseRadius, required Offset earthOffset, required double earthSize, required Offset moonOffset, required double backgroundRotation, required Offset centerOffset, required double backgroundSize, required double earthRotation})
Construct a Space Clock View Model
SpaceViewModel.of(DateTime time, SpaceConfig config, Size size)
Create a VM out of a time/config/screen size
factory

Properties

backgroundRotation double
Rotation of the background
final
backgroundSize double
Size of the background
final
centerOffset Offset
Center of the screen
final
earthOffset Offset
Screen offset of the earth
final
earthRotation double
Earth rotation
final
earthSize double
Size of the earth
final
hashCode int
The hash code for this object.
no setterinherited
moonOffset Offset
Moons offset in screen coords
final
moonRotation double
Rotation of the Moon
final
moonSize double
Size of the Moon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sunBaseRadius double
Radius of the suns's base disc
final
sunOffset Offset
Sun's screen offset
final
sunRotation double
Rotation of the Sun
final
sunSize double
Size of the sun
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