onFocusChanged method

  1. @override
void onFocusChanged(
  1. bool hasFocus
)
override

Implementation

@override
void onFocusChanged(bool hasFocus) {
  if (!hasFocus) {
    triggerValidation(currentValue);
  }
  setState(() {});
}