add method

GestureArenaEntry add (int pointer, GestureArenaMember member)

Adds a new member to the arena on behalf of this team.

Used by GestureRecognizer subclasses that wish to compete in the arena using this team.

To assign a gesture recognizer to a team, see OneSequenceGestureRecognizer.team.

Implementation

GestureArenaEntry add(int pointer, GestureArenaMember member) {
  final _CombiningGestureArenaMember combiner = _combiners.putIfAbsent(
      pointer, () => _CombiningGestureArenaMember(this, pointer));
  return combiner._add(pointer, member);
}