Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart how to write a a file

Future<File> writeCounter(int counter) async {
  final file = await _localFile;

  // Write the file
  return file.writeAsString('$counter');
}
Source by docs.flutter.dev #
 
PREVIOUS NEXT
Tagged: #dart #write #file
ADD COMMENT
Topic
Name
4+3 =