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 near expected.
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 by finder is in the expected state.