toggleListOverlayVisibility method

  1. @Deprecated('Use showListOverlay or hideListOverlay instead. A toggle cannot ' 'express intent when several gesture callbacks race to release the ' 'overlay: the redundant call inverts the state instead of being ignored.')
Future<void> toggleListOverlayVisibility(
  1. DirectSelectList visibleList,
  2. double location
)
override

Implementation

@Deprecated('Use showListOverlay or hideListOverlay instead. A toggle cannot '
    'express intent when several gesture callbacks race to release the '
    'overlay: the redundant call inverts the state instead of being ignored.')
Future<void> toggleListOverlayVisibility(
    DirectSelectList visibleList, double location) async {
  if (isOverlayVisible) {
    await hideListOverlay(location);
  } else {
    await showListOverlay(visibleList, location);
  }
}