clear method

void clear()

Implementation

void clear() { // Clears all input fields
  if (_state == null) return;

  for (int i = 0; i < _state!._controllers.length; i++) {
    _state!._controllers[i].clear();
    _state!._values[i] = '';
  }
  _state!._notifyCallbacks();
  _state!._refreshUI();
}