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