DiffKey class

Use this class as an annotation for describing how specific fields should be treated by the diff generator

Constructors

DiffKey({bool? ignoreSynthetic, bool? ignore, bool? forceCurrentData, bool? forceNewData, Object? defaultValue, Function? diffFunction})
const

Properties

defaultValue Object?
The value to use if currentData and newData are equal.
final
diffFunction Function?
A Function to use when diff the annotated field.
final
forceCurrentData bool
If true then diff function will use currentData.field even if null Default: false
final
forceNewData bool
If true then diff function will use newData.field even if null Default: false
final
hashCode int
The hash code for this object.
no setterinherited
ignore bool
If true the field will not be taken into account when checking if it's different, so this means the result diff object will have this field null. Default: false
final
ignoreSynthetic bool?
If true synthetic field will not be taken into account when checking if a field is different (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