createFile method

  1. @override
Future<bool> createFile(
  1. String path, [
  2. String? content
])
override

Creates a file at the given path, optionally with content.

Implementation

@override
Future<bool> createFile(String path, [String? content]) async {
  return await methodChannel.invokeMethod('createFile', {
    'path': path,
    'content': content,
  });
}