@@ -562,6 +562,16 @@ abstract class WidgetController {
562
562
///
563
563
/// {@macro flutter.flutter_test.WidgetController.tap.warnIfMissed}
564
564
///
565
+ /// {@template flutter.flutter_test.WidgetController.fling.offset}
566
+ /// The `offset` represents a distance the pointer moves in the global
567
+ /// coordinate system of the screen.
568
+ ///
569
+ /// Positive [Offset.dy] values mean the pointer moves downward. Negative
570
+ /// [Offset.dy] values mean the pointer moves upwards. Accordingly, positive
571
+ /// [Offset.dx] values mean the pointer moves towards the right. Negative
572
+ /// [Offset.dx] values mean the pointer moves towards left.
573
+ /// {@endtemplate}
574
+ ///
565
575
/// {@template flutter.flutter_test.WidgetController.fling}
566
576
/// This can pump frames.
567
577
///
@@ -817,6 +827,8 @@ abstract class WidgetController {
817
827
/// The operation happens at once. If you want the drag to last for a period
818
828
/// of time, consider using [timedDrag] .
819
829
///
830
+ /// {@macro flutter.flutter_test.WidgetController.fling.offset}
831
+ ///
820
832
/// {@template flutter.flutter_test.WidgetController.drag}
821
833
/// By default, if the x or y component of offset is greater than
822
834
/// [kDragSlopDefault] , the gesture is broken up into two separate moves
@@ -953,6 +965,8 @@ abstract class WidgetController {
953
965
///
954
966
/// {@macro flutter.flutter_test.WidgetController.tap.warnIfMissed}
955
967
///
968
+ /// {@macro flutter.flutter_test.WidgetController.fling.offset}
969
+ ///
956
970
/// This is the timed version of [drag] . This may or may not result in a
957
971
/// [fling] or ballistic animation, depending on the speed from
958
972
/// `offset/duration` .
0 commit comments