writeAsString abstract method
Writes contents to a text file located at id with encoding.
Returns a Future that completes after writing the asset out.
- Throws a
PackageNotFoundExceptionifid.packageis not found. - Throws an
InvalidOutputExceptionif the output was not valid.
Implementation
Future<void> writeAsString(AssetId id, String contents,
{Encoding encoding = utf8});