equivalentTo method

  1. @override
bool equivalentTo(
  1. Data other
)
override

Is this data equivalent to other?

This is a custom 'soft' equal (==) operator used to compare two data objects. Used in triggering something when a piece of data is collected.

Implementation

@override
bool equivalentTo(Data other) =>
    other is FileData && filename == other.filename;