operator == method Null safety

  1. @override
bool operator ==(
  1. 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);
}