signature static method
Implementation
static Future<String> signature() async {
const channel = BasicMessageChannel<dynamic>('io.github.wangyng.android_signature.signature', StandardMessageCodec());
final Map<String, dynamic> requestMap = {};
final reply = await channel.send(requestMap);
if (!(reply is Map)) {
_throwChannelException();
}
final replyMap = Map<String, dynamic>.from(reply);
if (replyMap['error'] != null) {
final error = Map<String, dynamic>.from(replyMap['error']);
_throwException(error);
return '';
} else {
return replyMap["result"];
}
}