buildGestureDetector method Null safety

Widget? buildGestureDetector(
  1. BuildMetadata meta,
  2. Widget child,
  3. GestureTapCallback onTap
)

Builds GestureDetector.

Implementation

Widget? buildGestureDetector(
  BuildMetadata meta,
  Widget child,
  GestureTapCallback onTap,
) =>
    MouseRegion(
      cursor: SystemMouseCursors.click,
      child: GestureDetector(onTap: onTap, child: child),
    );