unsubscribe method
unsubscribe from a topic for an identifier. Client using the same key pair and identifier will no longer receive messages from this topic. The signerRPCClient can be a client, multiclient or wallet.
Implementation
Future<String> unsubscribe({
String identifier = '',
required String topic,
String fee = '0',
int? nonce,
}) async {
try {
String hash = await _methodChannel.invokeMethod('unsubscribe', {
'_id': this.address,
'identifier': identifier,
'topic': topic,
'fee': fee,
'nonce': nonce,
});
return hash;
} catch (e) {
rethrow;
}
}