operator == method

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

按字段值比较,列表按内容比较。

Implementation

@override
bool operator ==(Object other) =>
    other is CapsulePrize &&
    other.topFill == topFill &&
    other.bottomFill == bottomFill &&
    listEquals(other.texts, texts) &&
    listEquals(other.images, images) &&
    other.weight == weight &&
    other.disabled == disabled &&
    other.painter == painter;