backFocusFor method

void backFocusFor(
  1. int focusIndex
)

Move focuse back for the focus with focusIndex

Implementation

void backFocusFor(int focusIndex) {
  int last = focusIndex - 1;

  if (!_isValidFocusIndex(last)) return;

  FocusScope.of(context).requestFocus(focuses[last]);
}