UseCaseDiagnosticsDataProvider mixin

Chooses which application data DevTools may show.

By default UseCase Forge exposes only technical metadata and never calls toString() on State, commands, keys, reasons, errors, or stack traces. Add the mixin to a UseCase that can provide a label or safe JSON values.

Returning null from encodeUseCaseDiagnosticValue keeps that value hidden. The diagnostic bridge validates, limits, and copies returned data. An exception from this formatter is reported as unavailable diagnostic data; it never enters command error handling or lifecycle.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useCaseDiagnosticLabel String?
Optional human-readable label for this UseCase instance.
no setter

Methods

encodeUseCaseDiagnosticValue(UseCaseDiagnosticValueKind kind, Object? value) Object?
Returns a JSON-safe representation of value, or null to hide it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited