DesignPressableBuilder typedef

DesignPressableBuilder = Widget Function(BuildContext context, Set<WidgetState> states, Widget? child)

Builds a pressable's face for its current states (hovered, focused, pressed, disabled, selected, error). child is the pressable's own child, passed through so a face that does not change with state is built once.

Implementation

typedef DesignPressableBuilder = Widget Function(
  BuildContext context,
  Set<WidgetState> states,
  Widget? child,
);