close method

Future<void> close()

Implementation

Future<void> close() {
  setState(() {
    _height = 0.0;
  });
  return Future<void>.delayed(widget.duration, () {
    Navigator.of(context).pop();
  });
}