LoggerWorker class abstract
Interface for logger workers that run in isolates.
- Implementers
Constructors
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
-
dispose(
) → Future< void> - Disposes of the worker, releasing any resources.
-
log(
String message) → Future< void> -
Logs a message.
messageis the log message to be processed by the worker. -
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 Properties
-
workers
→ Map<
String, WorkerCreator> -
Registry of available worker creators.
final
Static Methods
-
registerWorker<
T extends LoggerWorker> (String id, WorkerCreator workerCreator) → void -
Registers a worker creator with a unique identifier.
idis the unique identifier for the worker type.workerCreatoris the function that creates the worker. -
unregisterWorker(
String id) → void -
Unregisters a worker creator by its unique identifier.
idis the unique identifier for the worker type.