setValue method
void
setValue(
- T value
Implementation
void setValue(T value) {
emit(state.copyWith(
value: value,
));
final shouldValidate = this.shouldValidate?.call(state) ?? false;
if (shouldValidate) {
validate();
}
state.onChanged?.call(value);
}