createFile method

  1. @override
Future<void> createFile(
  1. String path
)
override

Implementation

@override
Future<void> createFile(String path) async {
  if (!(await File(path).exists())) {
    final file = await File(path).create(recursive: true);
    file.writeAsString("{}");
  }
}