BaseCloneLogger class base
Base logger for clone operations, storing log history and controlling log output.
- Implemented types
Constructors
- BaseCloneLogger({bool printOnLog = false})
- Creates a logger with optional printing enabled.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- printOnLog → bool
-
Whether logs are printed when recorded.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
doPrintOnLog(
bool value) → void -
Enables or disables printing logs on each log entry.
override
-
log(
String message) → void -
Records a log message and prints it if printing is enabled.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printLog(
String message) → void -
Prints a log message with a Cloner prefix.
override
-
reset(
) → void -
Clears the log history, restoring the logger to its initial state.
override
-
showLogs(
) → Iterable< String> -
Iterable of log messages, LIFO (most recent first).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited