sendImage method

  1. @override
Future<bool> sendImage(
  1. String imagePath
)
override

Send image

Implementation

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