hide method

TickerFuture hide()

Hides the sheet if it is shown.

Testing

To avoid timeouts in widget tests, always wrap the returned Future in unawaited.

testWidgets('shows', (tester) async {
  await tester.pumpWidget(...);

  unawaited(controller.show());
  await tester.pumpAndSettle();
});

Implementation

TickerFuture hide() => _controller.reverse();