call method
Implementation
@override
Future<dynamic> call(String method, [arguments]) async {
final result = await methodChannel.invokeMethod<dynamic>(method, arguments);
if (result is bool) {
return result;
}
if (method == 'ownPublicKey' || method == 'peerPublicKey') {
return result;
}
return result != null ? jsonDecode(result as String) : null;
}