toString method

  1. @override
String toString()
override

Converts the GesturePattern to a string representation.

Example: If the pattern is [GestureType.rightSwipe, GestureType.leftSwipe, GestureType.tap, GestureType.long], calling toString() will return ><.-.

Implementation

@override
String toString() {
  return pattern.map((gestureType) => gestureType.string).join();
}