setAsset method

SetonixData setAsset(
  1. String name,
  2. Uint8List data
)
inherited

Implementation

T setAsset(String name, Uint8List data) => updateState(state.copyWith(
      added: {...state.added, name: data},
      removed: Set.from(state.removed)..remove(name),
    ));