Drops class

Ink drops: fly under gravity, land on the floor and call onLand.

Constructors

Drops({double floor(double x)?, void onLand(double x, double y, double speed, double size)?, double g = 0.8})

Properties

floor → double Function(double x)
final
g → double
final
hashCode → int
The hash code for this object.
no setterinherited
onLand → void Function(double x, double y, double speed, double size)?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(double x, double y, double vx, double vy, [double size = 1]) → void
draw(Painter p, int body, int shine) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
update(double dt) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited