Cloner class abstract final

Provides access to the global cloning implementation.

Uses CountedClonerBuilder by default, but allows supplying a custom IClonerBuilding implementation via builder setter.

Not thread safe: changing builder or calling reset is not safe in concurrent environments.

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

builder IClonerBuilding
Current global IClonerBuilding reference.
getter/setter pair
defaultBuilder CountedClonerBuilder
no setter
reference DICloning
Current global ICloning reference.
getter/setter pair

Static Methods

instance({bool doTypedClone = true}) ICloning
Returns a new instance of ICloning using the current builder.
refresh() → void
Re-creates the builder.
reset() → void
Restores the builder to defaultBuilder.