DismissKeyboard constructor

const DismissKeyboard({
  1. Key? key,
  2. Widget? child,
  3. HitTestBehavior behavior = HitTestBehavior.opaque,
})

Tapping on a Widget will apply the FocusScope to it and hide the keyboard.

Implementation

const DismissKeyboard({
  Key? key,
  this.child,
  this.behavior = HitTestBehavior.opaque,
}) : super(key: key);