getCurrentFile method

Future<File?> getCurrentFile()

Implementation

Future<File?> getCurrentFile() async {
  await initialize();
  final current = _backend.currentFileObject;
  final currentPath = current?.path?.toString() ?? '';
  return currentPath.isEmpty ? null : File(currentPath);
}