operator == method

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

runtimeType and toString() are compared.

Implementation

@override
bool operator ==(Object other) {
    if( other.runtimeType != runtimeType ) return false;
    return other.toString() == toString();
}