toSet method

  1. @override
Set<Gesture> toSet()

Implementation

@override
Set<Gesture> toSet() {
  Set<Gesture> result = {};
  Gesture.values.forEach((element) {
    if (this.contains(element)) {
      result.add(element);
    }
  });
  return result;
}