ICloneable class
Interface for data objects that are able to create their full binary copy.
Example
class MyClass implements IMyClass, ICloneable {
MyClass() { };
clone() {
var cloneObj = (this.<any constructor>());
// Copy every attribute from this to cloneObj here.
...
return cloneObj;
}
}
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
clone(
) → dynamic - Creates a binary clone of this object. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited