close method
Closes component and frees used resources.
correlationId
(optional) transaction id to trace execution through call chain. Return Future that receives null no errors occured. Throws error
Implementation
@override
Future close(String? correlationId) async {
_opened = false;
if (_client != null) {
_client!.close();
}
_client = null;
_requestRoute = null;
}