CrossmintCheckoutDiagnostic class

Structured runtime signal emitted by CrossmintEmbeddedCheckout.

Annotations

Constructors

CrossmintCheckoutDiagnostic({required String code, required String message, required CrossmintCheckoutDiagnosticSeverity severity, String? event, Uri? uri, Map<String, Object?> details = const <String, Object?>{}})
Creates a diagnostic record.
const

Properties

code String
Short machine-readable identifier (e.g. "navigation.blocked", "message.parse_failed").
final
details Map<String, Object?>
Extra structured context for the diagnostic. Keys are stable — safe to forward to logging.
final
event String?
Hosted-page event associated with this diagnostic, if any (e.g. the original postMessage event name that failed to parse).
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable description of the diagnostic.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity CrossmintCheckoutDiagnosticSeverity
Severity classification — one of CrossmintCheckoutDiagnosticSeverity: info (interesting but not a problem, e.g. user closed the hosted modal), warning (likely recoverable — surface in dev / staging), error (hosted flow hit a problem that may affect checkout). Pass to logging infrastructure accordingly.
final
uri Uri?
URL associated with this diagnostic — set for navigation-related diagnostics (blocked navigations, resource errors).
final

Methods

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