sendFile method

  1. @override
Future<bool> sendFile(
  1. String filePath
)
override

Send file

Implementation

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