openFile method

Future<bool> openFile(
  1. String filePath
)

Open file with system handler (for non-APK files)

Implementation

Future<bool> openFile(String filePath) async {
  try {
    final result = await _channel.invokeMethod<bool>('openFile', {
      'filePath': filePath,
    });
    return result ?? false;
  } catch (e) {
    debugPrint('❌ Open file error: $e');
    return false;
  }
}