GlassPressable constructor

const GlassPressable({
  1. Key? key,
  2. required Widget child,
  3. bool enabled = true,
  4. ValueChanged<PressState>? onPressChanged,
  5. Widget builder(
    1. BuildContext context,
    2. PressState state,
    3. Widget child
    )?,
})

Creates a pressable around child.

Implementation

const GlassPressable({super.key, required this.child, this.enabled = true, this.onPressChanged, this.builder});