openDispute method
Implementation
Future<Dispute?> openDispute(String tradeId) async {
if (!havenoChannel.isConnected) {
throw DaemonNotConnectedException();
}
try {
await havenoChannel.disputesClient?.openDispute(OpenDisputeRequest(tradeId: tradeId));
await getDisputes();
Dispute? dispute = _disputes.firstWhere((d) => d.tradeId == tradeId);
return dispute;
} on GrpcError catch (e) {
handleGrpcError(e);
return null;
}
}