close method
Closes component and frees used resources.
- correlationId (optional) transaction id to trace execution through call chain.
- callback callback function that receives error or null no errors occured.
Implementation
@override
Future close(String? correlationId) async {
if (_interval != null) {
_interval!.cancel();
_interval = null;
}
}