# equals

> Compares both layout-affecting and non-layout-affecting attributes to match the legacy [SpanStyle.equals] contract.

## API Reference

### equals

> Source set: Common

```kotlin
override fun equals(other: Any?): Boolean
```

Compares both layout-affecting and non-layout-affecting attributes to match the legacy
`SpanStyle.equals` contract.
