CloneUtils class

一个包含了克隆相关操作的通用类。

Constructors

CloneUtils()

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 Methods

cloneList<T>(List<T> original) List<T>
克隆一个List。
cloneMap<K, V>(Map<K, V> original) Map<K, V>
克隆一个Map。
deepClone<T>(T original) → T
深拷贝一个对象(需要对象实现clone方法)。