equivalentTo method

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

Returns true if the deviceId is equal.

Implementation

@override
bool equivalentTo(Data other) =>
    (other is DeviceInformation) ? deviceId == other.deviceId : false;