getCallbackFromGesture method

Function getCallbackFromGesture(
  1. Gesture gesture
)

Implementation

Function getCallbackFromGesture(Gesture gesture) {
  if (gestureCallbackMap.containsKey(gesture.gestureType)) {
    return () =>
        gestureCallbackMap[gesture.gestureType]?.call(gesture.gestureDetail);
  } else {
    return () {};
  }
}