riverpodDispose method

void riverpodDispose({
  1. required String source,
  2. required String target,
  3. Map<String, Object?>? meta,
  4. String? correlationId,
  5. ISpectTraceConfig? config,
  6. String? consoleMessage,
})

Logs didDisposeProvider under stateCategory with the riverpod-dispose key.

Implementation

void riverpodDispose({
  required String source,
  required String target,
  Map<String, Object?>? meta,
  String? correlationId,
  ISpectTraceConfig? config,
  String? consoleMessage,
}) =>
    traceCategory(
      category: stateCategory,
      source: source,
      operation: 'dispose',
      target: target,
      logKey: ISpectLogType.riverpodDispose.key,
      success: true,
      meta: meta,
      correlationId: correlationId,
      config: config,
      consoleMessage: consoleMessage,
    );