createTempFile method

  1. @override
Future<String> createTempFile(
  1. String content
)

Creates a temporary file.

Implementation

@override
Future<String> createTempFile(String content) async {
  var file = _createTemporaryFile('temp');

  if (content.isNotEmpty) {
    await file.writeAsString(content, flush: true);
  }

  _tempFiles.add(file.path);
  return file.path;
}