SunnyFieldError.simple constructor

SunnyFieldError.simple({
  1. required JsonPath path,
  2. String? error,
})

Implementation

SunnyFieldError.simple({required JsonPath path, String? error})
    : this(
        path: path,
        errors: [ValidationError.ofString(path, error)],
        vsync: null,
        isFocused: true,
      );