Skip to content

Commit

Permalink
Fix setAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Aug 7, 2024
1 parent e521480 commit 8d05585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lw_file_system_api/lib/src/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ abstract class ArchiveData<T> {

T _updateState(ArchiveState state);

T addAsset(String name, Uint8List data) => _updateState(state.copyWith(
T setAsset(String name, Uint8List data) => _updateState(state.copyWith(
added: {...state.added, name: data},
removed: state.removed..remove(name),
removed: Set.from(state.removed)..remove(name),
));
T removeAsset(String name) => removeAssets([name]);
T removeAssets(Iterable<String> names) =>
Expand Down

0 comments on commit 8d05585

Please sign in to comment.