operator == method Null safety
- Object other
override
Two AttributedStrings are equal if their string and attributes are.
Implementation
@override
bool operator ==(Object other) {
return other.runtimeType == runtimeType
&& other is AttributedString
&& other.string == string
&& listEquals<StringAttribute>(other.attributes, attributes);
}