clear method
Clears component state.
correlationId
(optional) transaction id to trace execution through call chain. Returns Future that receives error or null no errors occured.
Implementation
@override
Future clear(String? correlationId) async {
_messages = <MessageEnvelope>[];
}