equivalentTo method
Returns true
if the batteryLevel is equal.
Implementation
@override
bool equivalentTo(Data other) =>
(other is BatteryState) ? batteryLevel == other.batteryLevel : false;
Returns true
if the batteryLevel is equal.
@override
bool equivalentTo(Data other) =>
(other is BatteryState) ? batteryLevel == other.batteryLevel : false;