updateAssetState method

  1. @override
void updateAssetState(
  1. String id,
  2. AssetState state
)
inherited

Updates the asset state in the asset graph.

Implementation

@override
void updateAssetState(String id, AssetState state) {
  if (assets.containsKey(id)) {
    assets[id]![GraphIndex.assetState] = state.index;
  } else {
    throw Exception('Asset not found: $id');
  }
}