CleanFrameworkObserver class

The class to observe failures, route changes and other events.

Constructors

CleanFrameworkObserver({bool enableNetworkLogs = true, Logger? logger})
Default constructor.

Properties

enableNetworkLogs bool
Enables network logs.
final
hashCode int
The hash code for this object.
no setterinherited
logger Logger
final
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
onExternalError(Object externalInterface, Request request, Object error, StackTrace stackTrace) → void
Called when an error is thrown by ExternalInterface for the given request.
onFailureInput(UseCase<Entity> useCase, DomainModel toGatewayModel, FailureDomainInput input) → void
Called when a failure input occurs in an use case.
onFailureResponse(Object externalInterface, Request request, FailureResponse failureResponse) → void
Called when a failureResponse occurs for the given request.
onLocationChanged(String location) → void
Called when location of the route changes.
onSuccessInput(UseCase<Entity> useCase, DomainModel toGatewayModel, SuccessDomainInput input) → void
Called when a success input occurs in an use case.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance CleanFrameworkObserver
Default instance of CleanFrameworkObserver.
getter/setter pair