operator == method
按字段值比较配置,列表按内容比较。
Implementation
@override
bool operator ==(Object other) =>
other is LuckyText &&
other.text == text &&
other.top == top &&
other.left == left &&
other.color == color &&
other.fontSize == fontSize &&
other.fontFamily == fontFamily &&
listEquals(other.fontFamilyFallback, fontFamilyFallback) &&
other.fontWeight == fontWeight &&
other.lineHeight == lineHeight &&
other.wordWrap == wordWrap &&
other.lengthLimit == lengthLimit &&
other.lineClamp == lineClamp;