Logger class

A utility class for logging messages in debug mode.

The Logger class provides static methods to control and perform logging operations. Logging can be enabled or disabled globally, and messages are only printed in debug mode.

Constructors

Logger.new()

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 Properties

isEnabled bool
Expose isEnabled for testing purposes
no setter

Static Methods

disable() → void
Disables logging functionality.
enable() → void
Enables logging functionality.
log(Object? message) → dynamic
Logs a message if logging is enabled and the app is in debug mode.