cacheStringAsset method

void cacheStringAsset(
  1. AssetId id,
  2. String contents,
  3. {Encoding? encoding}
)

Implementation

void cacheStringAsset(AssetId id, String contents, {Encoding? encoding}) {
  encoding ??= utf8;
  assets[id] = encoding.encode(contents);
}