Cloneable class

Use this class as an annotation to define a class to be cloneable so the the code generator can generate the boilerplate code for it

Constructors

Cloneable({bool? ignoreSynthetic, bool? generateCloneExtension, bool? considerEmptyCollectionAsNull})
const

Properties

considerEmptyCollectionAsNull bool?
Indicates that an empty List, Set, Map or Iterable to be considered as a null value when deciding clone from newData or keep currentData. Default: true
final
generateCloneExtension bool?
If true an extension will be generated on Class with a clone() function
final
hashCode int
The hash code for this object.
no setterinherited
ignoreSynthetic bool?
If true all synthetic fields will not be taken into account when cloning. (Synthetic fields are those represented by set and get definitions)
final
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