ErrorBoundaries class

Utility class for creating common error boundary configurations.

Constructors

ErrorBoundaries()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

adapterRetry<T>({int maxRetries = 2, Duration retryDelay = const Duration(milliseconds: 500), DatumLogger? logger}) ErrorBoundary<T>
Creates an error boundary that retries adapter operations.
observerIsolation({DatumLogger? logger}) ErrorBoundary<void>
Creates an error boundary that isolates observer notifications.
readWithFallback<T>({T? fallbackValue, Future<T?> fallbackOperation()?, DatumLogger? logger}) ErrorBoundary<T?>
Creates an error boundary that provides fallbacks for read operations.
syncIsolation<T extends DatumEntityInterface>({DatumLogger? logger}) ErrorBoundary<DatumSyncResult<T>>
Creates an error boundary that isolates sync operations.