build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Describes the part of the UI represented by this widget.

Implementation

@override
Widget build(BuildContext context) {
  if (!enabled) return child;
  return GestureDetector(
    child: child,
    onEnter: onEnter,
    onExit: onExit,
    captureMouse: false,
  );
}