@@ -45,11 +45,13 @@ class TapDownDetails {
4545 final Offset localPosition;
4646}
4747
48+ /// {@template flutter.gestures.tap.GestureTapDownCallback}
4849/// Signature for when a pointer that might cause a tap has contacted the
4950/// screen.
5051///
5152/// The position at which the pointer contacted the screen is available in the
5253/// `details` .
54+ /// {@endtemplate}
5355///
5456/// See also:
5557///
@@ -82,11 +84,13 @@ class TapUpDetails {
8284 final PointerDeviceKind kind;
8385}
8486
87+ /// {@template flutter.gestures.tap.GestureTapUpCallback}
8588/// Signature for when a pointer that will trigger a tap has stopped contacting
8689/// the screen.
8790///
8891/// The position at which the pointer stopped contacting the screen is available
8992/// in the `details` .
93+ /// {@endtemplate}
9094///
9195/// See also:
9296///
@@ -360,8 +364,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
360364 /// {@macro flutter.gestures.GestureRecognizer.supportedDevices}
361365 TapGestureRecognizer ({ super .debugOwner, super .supportedDevices });
362366
367+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onTapDown}
363368 /// A pointer has contacted the screen at a particular location with a primary
364369 /// button, which might be the start of a tap.
370+ /// {@endtemplate}
365371 ///
366372 /// This triggers after the down event, once a short timeout ([deadline] ) has
367373 /// elapsed, or once the gestures has won the arena, whichever comes first.
@@ -378,8 +384,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
378384 /// * [GestureDetector.onTapDown] , which exposes this callback.
379385 GestureTapDownCallback ? onTapDown;
380386
387+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onTapUp}
381388 /// A pointer has stopped contacting the screen at a particular location,
382389 /// which is recognized as a tap of a primary button.
390+ /// {@endtemplate}
383391 ///
384392 /// This triggers on the up event, if the recognizer wins the arena with it
385393 /// or has previously won, immediately followed by [onTap] .
@@ -411,8 +419,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
411419 /// * [GestureDetector.onTap] , which exposes this callback.
412420 GestureTapCallback ? onTap;
413421
422+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onTapCancel}
414423 /// A pointer that previously triggered [onTapDown] will not end up causing
415424 /// a tap.
425+ /// {@endtemplate}
416426 ///
417427 /// This triggers once the gesture loses the arena if [onTapDown] has
418428 /// previously been triggered.
@@ -428,8 +438,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
428438 /// * [GestureDetector.onTapCancel] , which exposes this callback.
429439 GestureTapCancelCallback ? onTapCancel;
430440
441+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTap}
431442 /// A pointer has stopped contacting the screen, which is recognized as a tap
432443 /// of a secondary button.
444+ /// {@endtemplate}
433445 ///
434446 /// This triggers on the up event, if the recognizer wins the arena with it or
435447 /// has previously won, immediately following [onSecondaryTapUp] .
@@ -444,8 +456,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
444456 /// * [GestureDetector.onSecondaryTap] , which exposes this callback.
445457 GestureTapCallback ? onSecondaryTap;
446458
459+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTapDown}
447460 /// A pointer has contacted the screen at a particular location with a
448461 /// secondary button, which might be the start of a secondary tap.
462+ /// {@endtemplate}
449463 ///
450464 /// This triggers after the down event, once a short timeout ([deadline] ) has
451465 /// elapsed, or once the gestures has won the arena, whichever comes first.
@@ -462,8 +476,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
462476 /// * [GestureDetector.onSecondaryTapDown] , which exposes this callback.
463477 GestureTapDownCallback ? onSecondaryTapDown;
464478
479+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTapUp}
465480 /// A pointer has stopped contacting the screen at a particular location,
466481 /// which is recognized as a tap of a secondary button.
482+ /// {@endtemplate}
467483 ///
468484 /// This triggers on the up event if the recognizer wins the arena with it
469485 /// or has previously won.
@@ -482,8 +498,10 @@ class TapGestureRecognizer extends BaseTapGestureRecognizer {
482498 /// * [GestureDetector.onSecondaryTapUp] , which exposes this callback.
483499 GestureTapUpCallback ? onSecondaryTapUp;
484500
501+ /// {@template flutter.gestures.tap.TapGestureRecognizer.onSecondaryTapCancel}
485502 /// A pointer that previously triggered [onSecondaryTapDown] will not end up
486503 /// causing a tap.
504+ /// {@endtemplate}
487505 ///
488506 /// This triggers once the gesture loses the arena if [onSecondaryTapDown]
489507 /// has previously been triggered.
0 commit comments