close method

Future<void> close({
  1. bool? state,
})

Implementation

Future<void> close({bool? state}) async {
  closeState = state;

  if (closeState != null) {
    setState(() {});
    await 2000.wait;
  }

  if (mounted)
    setState(() {
      _isVisible = false;
    });
  _overController.overloadingState = null;
  await Future.delayed(OverExtension.kSheetAnimationDuration);
}