clear method

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

Clears component state.

  • correlationId (optional) transaction id to trace execution through call chain. Return Future that receives error or null no errors occured.

Implementation

@override
Future clear(String? correlationId) async {
  items = <T>[];
  logger.trace(correlationId, 'Cleared items');
  await save(correlationId);
}