copyWith method

PartialDataException copyWith({
  1. required String fieldName,
})

Returns a copy of this exception with the given fieldName added to the path.

Implementation

PartialDataException copyWith({required String fieldName}) {
  return PartialDataException(path: [fieldName, ...path]);
}