MClonerLogging mixin

A mixin that adds logging capabilities to cloning operations.

When applied to a class that implements ICloning, this mixin provides logging for each clone operation, including the type and size of the data being cloned. Logging can be enabled or disabled via enablePrinting, and the log history can be accessed using showLog.

Example usage:

final class MyCloner extends BaseCloner with MClonerLogging { ... }
Superclass constraints

Properties

enablePrinting bool
If true, logs will be printed for each clone operation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cloneList<E>(List<E> source) List<E>
Clones a list, producing a new list with cloned elements.
override
cloneMap<K, V>(Map<K, V> source) Map<K, dynamic>
Clones a map, producing a new map with cloned keys and dynamic values.
override
cloneMapTyped<K, V>(Map<K, V> source) Map<K, V>
Clones a map with typed values, producing a new map with keys and cloned values.
override
cloneSet<E>(Set<E> source) Set<E>
Clones a set, producing a new set with cloned elements.
override
cloneValue(dynamic source) → dynamic
Clones a single value, returning a deep copy if possible.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showLog() Iterable<String>
Returns an iterable of log messages, LIFO (most recent first).
toString() String
A string representation of this object.
inherited

Operators

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