operator == method
runtimeType と toString() の値を比較する。 runtimeType が異なれば false. super class であっても fasle となる. operator == method - Object class - dart:core library - Dart API: "https://api.dart.dev/stable/2.15.1/dart-core/Object/operator_equals.html"
Implementation
@override
bool operator ==(Object other) {
if( other.runtimeType != runtimeType ) return false;
final typeChecked = other as ValuePattern;
return typeChecked.toString() == toString();
}