equalToTarget method

bool equalToTarget (
  1. Object object
)

FIXME: == の override は現状機能してない。↓の issue が対応されたら使う。 See: https://github.com/rrousselGit/freezed/issues/221

Implementation

//  @override
//  bool operator ==(Object other) => other is LifeItemEntity && other.type == type && other.key == key;
//
//  @override
//  int get hashCode => type.hashCode ^ key.hashCode;

bool equalToTarget(Object object) => object is TargetLifeItemParams && object.type == type && object.key == key;