StringAsset constructor

StringAsset(
  1. String content, {
  2. String fileName = 'path.dart',
})

Creates a new StringAsset with the given content and optional fileName.

Implementation

StringAsset(this.content, {String fileName = 'path.dart'}) : stringUri = 'asset:$testPackageName/$fileName';