Drop class Null safety

Model class for drops in ParallaxRain

Constructors

Drop({required Rect drop, required double dropSpeed, required int dropLayer, required Color dropColor})

Properties

drop Rect
Represents a drop by a Rect object, i.e. a combination of Offset and Size
read / write
dropColor Color
The color that this drop has right now
read / write
dropLayer int
The layer in which this drop is right now
read / write
dropSpeed double
The speed at which this drop is travelling
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited