copyWith method

EditBuffer copyWith({
  1. Map<String, Object?>? original,
  2. Map<String, Object?>? edits,
  3. bool? isSaving,
  4. EntityGraphError? error,
  5. bool clearError = false,
})

Implementation

EditBuffer copyWith({
  Map<String, Object?>? original,
  Map<String, Object?>? edits,
  bool? isSaving,
  EntityGraphError? error,
  bool clearError = false,
}) => EditBuffer(
  original: original ?? this.original,
  edits: edits ?? this.edits,
  isSaving: isSaving ?? this.isSaving,
  error: clearError ? null : (error ?? this.error),
);