getDoc method

  1. @override
Future<File?> getDoc()
override

Picks a document and returns its path as a String.

Must be implemented by the platform-specific class.

Implementation

@override
Future<File?> getDoc() async {
  final version = await methodChannel.invokeMethod<List>('getDoc');
  return version != null ? File(version.first) : null;
}