fieldFocusChange function

void fieldFocusChange (
  1. BuildContext context,
  2. FocusNode currentFocus,
  3. FocusNode nextFocus
)

Implementation

void fieldFocusChange(
    BuildContext context, FocusNode currentFocus, FocusNode nextFocus) {
  currentFocus.unfocus();
  FocusScope.of(context).requestFocus(nextFocus);
}