operator == method
按字段值比较,列表按内容比较。
Implementation
@override
bool operator ==(Object other) =>
other is CapsuleConfig &&
listEquals(other.prizes, prizes) &&
listEquals(other.capsules, capsules) &&
other.capsulesPerPrize == capsulesPerPrize &&
other.options == options &&
other.style == style;