@@ -132,12 +132,12 @@ class SemanticsController {
132
132
/// See also:
133
133
///
134
134
/// * [containsSemantics] and [matchesSemantics] , which can be used to match
135
- /// against a single node in the traversal
135
+ /// against a single node in the traversal.
136
136
/// * [containsAllInOrder] , which can be given an [Iterable<Matcher>] to fuzzy
137
137
/// match the order allowing extra nodes before after and between matching
138
- /// parts of the traversal
138
+ /// parts of the traversal.
139
139
/// * [orderedEquals] , which can be given an [Iterable<Matcher>] to exactly
140
- /// match the order of the traversal
140
+ /// match the order of the traversal.
141
141
Iterable <SemanticsNode > simulatedAccessibilityTraversal ({Finder ? start, Finder ? end}) {
142
142
TestAsyncUtils .guardSync ();
143
143
final List <SemanticsNode > traversal = < SemanticsNode > [];
@@ -784,8 +784,10 @@ abstract class WidgetController {
784
784
///
785
785
/// The [WidgetTester] subclass implements this by deferring to the [binding] .
786
786
///
787
- /// See also [SchedulerBinding.endOfFrame] , which returns a future that could
788
- /// be appropriate to return in the implementation of this method.
787
+ /// See also:
788
+ ///
789
+ /// * [SchedulerBinding.endOfFrame] , which returns a future that could be
790
+ /// appropriate to return in the implementation of this method.
789
791
Future <void > pump ([Duration duration]);
790
792
791
793
/// Repeatedly calls [pump] with the given `duration` until there are no
@@ -1110,8 +1112,9 @@ abstract class WidgetController {
1110
1112
///
1111
1113
/// See also:
1112
1114
/// * [WidgetController.drag] , a method to simulate a drag.
1113
- /// * [WidgetController.timedDrag] , a method to simulate the drag of a given widget in a given duration.
1114
- /// It sends move events at a given frequency and it is useful when there are listeners involved.
1115
+ /// * [WidgetController.timedDrag] , a method to simulate the drag of a given
1116
+ /// widget in a given duration. It sends move events at a given frequency and
1117
+ /// it is useful when there are listeners involved.
1115
1118
/// * [WidgetController.fling] , a method to simulate a fling.
1116
1119
Future <TestGesture > startGesture (
1117
1120
Offset downLocation, {
@@ -1313,8 +1316,7 @@ abstract class WidgetController {
1313
1316
/// Specify `platform` as one of the platforms allowed in
1314
1317
/// [platform.Platform.operatingSystem] to make the event appear to be from
1315
1318
/// that type of system. Defaults to "web" on web, and "android" everywhere
1316
- /// else. Must not be null. Some platforms (e.g. Windows, iOS) are not yet
1317
- /// supported.
1319
+ /// else. Must not be null.
1318
1320
///
1319
1321
/// Specify the `physicalKey` for the event to override what is included in
1320
1322
/// the simulated event. If not specified, it uses a default from the US
@@ -1359,8 +1361,7 @@ abstract class WidgetController {
1359
1361
/// Specify `platform` as one of the platforms allowed in
1360
1362
/// [platform.Platform.operatingSystem] to make the event appear to be from
1361
1363
/// that type of system. Defaults to "web" on web, and "android" everywhere
1362
- /// else. Must not be null. Some platforms (e.g. Windows, iOS) are not yet
1363
- /// supported.
1364
+ /// else. Must not be null.
1364
1365
///
1365
1366
/// Specify the `physicalKey` for the event to override what is included in
1366
1367
/// the simulated event. If not specified, it uses a default from the US
@@ -1433,7 +1434,7 @@ abstract class WidgetController {
1433
1434
/// Specify `platform` as one of the platforms allowed in
1434
1435
/// [platform.Platform.operatingSystem] to make the event appear to be from that type
1435
1436
/// of system. Defaults to "web" on web, and "android" everywhere else. Must not be
1436
- /// null. Some platforms (e.g. Windows, iOS) are not yet supported.
1437
+ /// null.
1437
1438
///
1438
1439
/// Specify the `physicalKey` for the event to override what is included in
1439
1440
/// the simulated event. If not specified, it uses a default from the US
@@ -1639,12 +1640,12 @@ class LiveWidgetController extends WidgetController {
1639
1640
for (final PointerEventRecord record in records) {
1640
1641
final DateTime now = clock.now ();
1641
1642
startTime ?? = now;
1642
- // So that the first event is promised to receive a zero timeDiff
1643
+ // So that the first event is promised to receive a zero timeDiff.
1643
1644
final Duration timeDiff = record.timeDelay - now.difference (startTime);
1644
1645
if (timeDiff.isNegative) {
1645
1646
// This happens when something (e.g. GC) takes a long time during the
1646
1647
// processing of the events.
1647
- // Flush all past events
1648
+ // Flush all past events.
1648
1649
handleTimeStampDiff.add (- timeDiff);
1649
1650
record.events.forEach (binding.handlePointerEvent);
1650
1651
} else {
0 commit comments