SunLayer class

Represents a "layer" of the sun

This is baked into the config so we can say what layers are drawn, with what blend mode, and if they are visually flipped

Constructors

SunLayer({required String image, required BlendMode mode, required bool flipped, required double speed})
Construct a sun layer

Properties

flipped bool
We can flip layers to give fake randomness
final
hashCode int
The hash code for this object.
no setterinherited
image String
The image name, e.g. sun_1 or sun_2, that would be in the map
final
mode BlendMode
The blend mode we will draw this layer
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
And we should set a speed the layers transition
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