plainTextSharedReuseSignature method
int
plainTextSharedReuseSignature(
)
Implementation
int plainTextSharedReuseSignature() {
prepareLayout();
int hash = 0;
hash = _hashCombineInt(hash, _items.length);
hash = _hashCombineInt(hash, _textContent.hashCode);
hash = _hashCombineInt(
hash,
_resolvedLayoutStyleSignature((container as RenderBoxModel).renderStyle),
);
for (final InlineItem item in _items) {
hash = _hashCombineInt(hash, item.type.hashCode);
hash = _hashCombineInt(hash, item.startOffset);
hash = _hashCombineInt(hash, item.endOffset);
if (item.direction != null) {
hash = _hashCombineInt(hash, item.direction.hashCode);
}
final CSSRenderStyle? style = item.style;
if (style != null) {
hash = _hashCombineInt(hash, _resolvedLayoutStyleSignature(style));
}
}
return _hashFinishInt(hash);
}