copyWith method

  1. @override
DanglingReferenceException copyWith({
  1. required String fieldName,
})
override

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

Implementation

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