hide method

Future<bool> hide()

Implementation

Future<bool> hide() {
  if (_isShowing) {
    try {
      _isShowing = false;
      Navigator.of(_dismissingContext).pop(true);
      if (_showLogs) debugPrint('BottomLoader dismissed');
      return Future.value(true);
    } catch (_) {
      return Future.value(false);
    }
  } else {
    if (_showLogs) debugPrint('BottomLoader already dismissed');
    return Future.value(false);
  }
}