writeAsString method

  1. @override
Future writeAsString(
  1. AssetId _,
  2. String __,
  3. {Encoding encoding = utf8}

Writes contents to a text file located at id with encoding.

Returns a Future that completes after writing the asset out.

  • Throws a PackageNotFoundException if id.package is not found.
  • Throws an InvalidOutputException if the output was not valid.


Future writeAsString(_, __, {Encoding encoding = utf8}) => Future.value(null);