Attribute<X>.ofError constructor

Attribute<X>.ofError(
  1. JsonPath<X>? path,
  2. dynamic error, {
  3. required AttributeSource source,
})

Implementation

Attribute.ofError(this.path, this.error, {required AttributeSource source})
    : source = source,
      clearErrors = false,
      value = null;