endGlide method

bool endGlide()

Ends a glide started with glideTo, typically when the finger lifts.

Activates the highlighted item exactly as a tap would (runs it and closes, or opens its GlassMenuItem.submenu) and returns true. With nothing highlighted, it clears the glide, leaves the menu open, and returns false.

Implementation

bool endGlide() => _state?._endGlide() ?? false;