CopyWith class
Use this class as an annotation to define a class to be able to copyWith so the the code generator can generate the boilerplate code for it
Constructors
Properties
- allowNullable → bool?
-
If true all nullable fields would get the value from copy without any null
validation.
final
- avoidConstructor → bool?
-
If true the fields will not be passed in constructor, otherwise will be set
directly.
Default: false
final
- considerEmptyCollectionAsNull → bool?
-
Indicates that an empty List, Set, Map or Iterable to be considered
as a null value when deciding copyWith from newData or keep currentData.
Default: true
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
- includePrivateFields → bool?
-
Include private fields in copyWith function.
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