GlassBarSheetItem constructor

const GlassBarSheetItem({
  1. required Widget icon,
  2. required void onPresent(
    1. GlassMorphAnchor? anchor
    ),
  3. Object? id,
  4. String? label,
  5. bool enabled = true,
  6. GlassBarItemBackground background = GlassBarItemBackground.shared,
  7. Color? tintColor,
  8. GlassBarItemAxisBehavior axisBehavior = GlassBarItemAxisBehavior.automatic,
})

Creates a sheet item. Prefer GlassBarItem.sheet.

Implementation

const GlassBarSheetItem({
  required this.icon,
  required this.onPresent,
  super.id,
  super.label,
  super.enabled,
  super.background,
  super.tintColor,
  super.axisBehavior,
}) : super(onTap: GlassBarActionItem._noOp);