wrapInteractiveField method
Wraps non-text field content in a Focus and tap target, or wraps
text-field content in a tap target alone.
Implementation
Widget wrapInteractiveField(Widget content) {
final focusableChild = delegatesFocusToChild
? content
: Focus(
focusNode: _focusNode,
onFocusChange: handleFocusChange,
onKeyEvent: handleFocusKeyEvent,
child: content,
);
return _FormFieldTapTarget(
onTapPress: _focusNode.requestFocus,
child: focusableChild,
);
}