clearFocusGesture static method

GestureDetector clearFocusGesture(
  1. BuildContext context,
  2. Widget child
)

Create gesture detector with clear focus

Implementation

static GestureDetector clearFocusGesture(BuildContext context, Widget child) {
  return GestureDetector(
      onTap: () {
        clearFocus(context);
      },
      child: child);
}