writeToFile static method

Future writeToFile(
  1. dynamic documentsDir,
  2. String fileName,
  3. String notes, {
  4. String? direcName,
  5. String? userId = "user",
})

Web 平台不支持文件系统写入

Implementation

static Future<dynamic> writeToFile(
    dynamic documentsDir,
    String fileName,
    String notes,
    {String? direcName, String? userId = "user"}) async {
  throw UnsupportedError('File operations are not supported on web platform. Use browser storage APIs instead.');
}