internal override void ValidateGesture(IGestureRecognizer gesture) { switch (gesture) { case ClickGestureRecognizer click: case TapGestureRecognizer tap: case null: break; default: throw new InvalidOperationException($"{gesture.GetType().Name} is not supported on a {nameof(Span)}"); } }
public static bool Is <T>(this IGestureRecognizer gestureRecognizer) => gestureRecognizer.GetType() == typeof(T);