SwipeAssertions extension
Assertion helpers for SwipeActionCell state, added to WidgetTester.
- on
Methods
-
expectIdle(
Finder finder) → void -
Available on WidgetTester, provided by the SwipeAssertions extension
Shorthand for asserting SwipeState.idle. -
expectProgress(
Finder finder, double expected, {double tolerance = 0.01}) → void -
Available on WidgetTester, provided by the SwipeAssertions extension
Asserts that the SwipeActionCell progress ratio is nearexpected. -
expectRevealed(
Finder finder) → void -
Available on WidgetTester, provided by the SwipeAssertions extension
Shorthand for asserting SwipeState.revealed. -
expectSwipeState(
Finder finder, SwipeState expected) → void -
Available on WidgetTester, provided by the SwipeAssertions extension
Asserts that the SwipeActionCell matched byfinderis in theexpectedstate.