CopyWith class
Annotation used to indicate that the copyWith
extension should be generated.
Constructors
Properties
- copyWithNull → bool
-
Set
copyWithNull
totrue
if you want to usecopyWithNull
function that allows you to nullify the fields. E.g.myInstance.copyWithNull(id: true, name: true)
. Otherwise it will be still generated for internal use but marked as private.final - hashCode → int
-
The hash code for this object.
no setterinherited
- namedConstructor → String?
-
Set
namedConstructor
if you want to use a named constructor instead. The generated fields will be derived from this constructor.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipFields → bool
-
Prevent the library from generating copyWith function for individual filelds. If you want to use only copyWith(...) function.
final
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