operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Needed for getTiledImages in TileMap; Images are equal if their source is equal.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is TiledImage &&
        runtimeType == other.runtimeType &&
        source == other.source;