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