operator == method Null safety

  1. @override
bool operator ==(
  1. dynamic other
)
override

Compares if two Names are equal.

If compared with another instance of Name, they will be compared by _name and _changedToAt.

Implementation

@override
bool operator ==(dynamic other) =>
    other is Name &&
    (other._name == _name && other._changedToAt == _changedToAt);