hasTap property
bool
get
hasTap
Whether this item has an active tap action of its own.
True for GlassBarItem.icon, GlassBarItem.menu, and GlassBarItem.sheet, as well as GlassBarItem.custom when an onTap callback was supplied. False for a passive GlassBarItem.custom, which lets its child handle its own gestures and semantics without the cluster wrapping it in a button.
Implementation
bool get hasTap => this is! GlassBarCustomItem || !identical(onTap, _noOp);