getCustomValue method

  1. @override
Future<String?> getCustomValue(
  1. String messageId,
  2. String key
)
override

Implementation

@override
Future<String?> getCustomValue(String messageId, String key) async {
  String? res;
  try {
    res = await mirrorFlyMethodChannel.invokeMethod<String>(
        'getCustomValue', {"message_id": messageId, "key": key});
    return res;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}