clickable method

Modifier clickable(
  1. VoidCallback onClick
)

Wrap the widget into an GestureDetector Widget

Implementation

Modifier clickable(VoidCallback onClick) {
  return Modifier._([
    ..._modifiers,
    (widget) {
      return GestureDetector(
        onTap: onClick,
        child: widget,
      );
    }
  ]);
}