operator == method
Compares two instances of the Cell styles.
Implementation
@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(Object toCompare) {
final CellStyle baseStyle = this;
// ignore: test_types_in_equals
final CellStyle toCompareStyle = toCompare as CellStyle;
return baseStyle.backColor == toCompareStyle.backColor &&
baseStyle.bold == toCompareStyle.bold &&
baseStyle.numberFormatIndex == toCompareStyle.numberFormatIndex &&
baseStyle.numberFormat == toCompareStyle.numberFormat &&
baseStyle.fontColor == toCompareStyle.fontColor &&
baseStyle.fontName == toCompareStyle.fontName &&
baseStyle.fontSize == toCompareStyle.fontSize &&
baseStyle.hAlign == toCompareStyle.hAlign &&
baseStyle.italic == toCompareStyle.italic &&
baseStyle.underline == toCompareStyle.underline &&
baseStyle.vAlign == toCompareStyle.vAlign &&
baseStyle.indent == toCompareStyle.indent &&
baseStyle.rotation == toCompareStyle.rotation &&
baseStyle.wrapText == toCompareStyle.wrapText &&
baseStyle.borders == toCompareStyle.borders &&
baseStyle.locked == toCompareStyle.locked &&
baseStyle.backColorRgb == toCompareStyle.backColorRgb &&
baseStyle.fontColorRgb == toCompareStyle.fontColorRgb;
}