📜  在 Flutter 中写入和读取文件 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.784000             🧑  作者: Mango

代码示例3
Future writeCounter(int counter) async {
  final file = await _localFile;

  // Write the file.
  return file.writeAsString('$counter');
}