equivalentTo method
Is this data equivalent to other?
This is a custom 'soft' equal (==) operator used to compare two data objects. Used in triggering when some data is collected. Override in subclasses to provide custom equivalence checking.
Implementation
@override
bool equivalentTo(Data other) =>
other is CompletedTask && taskName == other.taskName;