addAssets function
Implementation
void addAssets(Map<AssetId, dynamic> assets, TestReaderWriter writer) {
assets.forEach((id, value) {
if (value is String) {
writer.testing.writeString(id, value);
} else if (value is List<int>) {
writer.testing.writeBytes(id, value);
} else {
throw ArgumentError(
'`assets` values must be of type `String` or `List<int>`, got '
'${value.runtimeType}.',
);
}
});
}