dismiss method

void dismiss({
  1. bool animated = true,
  2. bool fromLeading = false,
})

Programmatically triggers the full-swipe dismiss animation and invokes GlassSwipeActions.onDismissed.

Implementation

void dismiss({bool animated = true, bool fromLeading = false}) {
  _state?.dismiss(animated: animated, fromLeading: fromLeading);
}