makeAssetId function Null safety

AssetId makeAssetId(
  1. [String? assetIdString]
)

Implementation

AssetId makeAssetId([String? assetIdString]) {
  if (assetIdString == null) {
    assetIdString = 'a|web/asset_$_nextId.txt';
    _nextId++;
  }
  return AssetId.parse(assetIdString);
}