updateTouched method Null safety

  1. @protected
void updateTouched(
  1. {bool updateParent = true}
)

Implementation

@protected
void updateTouched({bool updateParent = true}) {
  _touched = _anyControlsTouched();

  if (updateParent) {
    parent?.updateTouched(updateParent: updateParent);
  }
}