markAsTouched method

void markAsTouched()

Mark the field as touched (focused then blurred).

Implementation

void markAsTouched() {
  if (!value.isTouched) {
    value = value.copyWith(isTouched: true);
  }
}