close method

Future<void> close({
  1. Duration duration = kDefaultDuration,
  2. Curve curve = Curves.easeOut,
})

Animates the sheet fully closed (SheetStage.closed).

Implementation

Future<void> close({
  Duration duration = kDefaultDuration,
  Curve curve = Curves.easeOut,
}) =>
    animateTo(const SheetStage.closed(), duration: duration, curve: curve);