LoFieldState<TKey, TValue> constructor

LoFieldState<TKey, TValue>({
  1. required TKey loKey,
  2. TValue? initialValue,
  3. List<LoFieldBaseValidator<TValue>> validators = const [],
  4. required ValueChanged<TValue> onChanged,
  5. Duration? debounceTime,
})

Implementation

LoFieldState({
  required this.loKey,
  this.initialValue,
  this.validators = const [],
  required ValueChanged<TValue> onChanged,
  this.debounceTime,
})  : _onValueChanged = onChanged,
      _debouncer = debounceTime == null ? null : Debouncer(debounceTime),
      value = initialValue,
      touched = false,
      error = null;