SunnyFieldError constructor

SunnyFieldError({
  1. required JsonPath path,
  2. bool? isFocused,
  3. required List<ValidationError?>? errors,
  4. required TickerProvider? vsync,
})

Implementation

SunnyFieldError(
    {required this.path,
    this.isFocused,
    required this.errors,
    required this.vsync})
    : hasError = errors.isNotNullOrEmpty,
      super(key: Key(sunnyFieldErrorKey(path)));