# operator == method

1. @override

bool operator ==(

1. Object other

)
override

Returns true if this StringBuilder equals the specified object.

## Implementation

    @override
    bool operator ==(Object other) {
      if (identical(this, other)) return true;
      if (other is StringBuilder) {
        return _buffer.toString() == other._buffer.toString();
      }
      if (other is String) {
        return _buffer.toString() == other;
      }
      return false;
    }