gravity property

Offset? gravity

The gravity vector of the particle system.

Implementation

Offset? get gravity {
  if (_gravity == null) return null;

  return Offset(_gravity!.x, _gravity!.y);
}
void gravity=(Offset? gravity)

Implementation

set gravity(Offset? gravity) {
  if (gravity == null) {
    _gravity = null;
  } else {
    _gravity = Vector2(gravity.dx, gravity.dy);
  }
}