writeToFile static method
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.');
}