close method

  1. @override
Future close(
  1. String? correlationId
)

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;
}