operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Determines whether this unit of measurement value is equal to other.

Two units of measurement values are considered equal only if they are of the same type and their baseValue is the same.

Implementation

@override
bool operator ==(Object other) =>
    other is TValue && baseValue == other.baseValue;