Dart supports == for equality and identical (a, b) for identity. Dart no longer supports the === syntax. Use == for equality when you want to check if too objects are “equal”. You can implement the == method in your class to define what equality means.