handleGesture method

void handleGesture(
  1. Offset position,
  2. Gesture gesture
)

Handles a given gesture.

Implementation

void handleGesture(Offset position, Gesture gesture) {
  for (GameEntity entity in entities) {
    entity.handleGesture(position, gesture);
  }
}