StackLazyLumberdash class

The stack limit implementation of LazyLumberdash. It receives an integer that defines the limit calls that can be stored in _logCalls before dispatchLogCalls is called.

Once the limit is reached or surpassed, dispatchLogCalls is called.

Inheritance

Constructors

StackLazyLumberdash({required LumberdashClient client, required int limit})

Properties

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

Methods

close() → void
Calls dispatchLogCalls
inherited
dispatchLogCalls() → void
Dispatches all log calls that exist on _logCalls array in a FIFO order. Uses _lock to grant mutual exclusion access on the log calls dispatch.
inherited
logError(dynamic exception, [dynamic stacktrace]) → void
Registers a _innerLumberdashClient logError call on _logCalls
inherited
logFatal(String message, [Map<String, String>? extras]) → void
Registers a _innerLumberdashClient logFatal call on _logCalls
inherited
logMessage(String message, [Map<String, String>? extras]) → void
Registers a _innerLumberdashClient logMessage call on _logCalls
inherited
logWarning(String message, [Map<String, String>? extras]) → void
Registers a _innerLumberdashClient logWarning call on _logCalls
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onNewLogCall(void call()) → void
Override this method to listen to new log calls and decide whether or not you should call dispatchLogCalls.
override
registerLogCall(void call()) → void
Endpoint for _innerLumberdashClient log calls registry on _logCalls. Notifies the implementer after register the call, by call onNewLogCall.
inherited
toString() String
A string representation of this object.
inherited

Operators

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