crossFades property
bool
get
crossFades
Whether both sides exist but render different content or visual style.
Implementation
bool get crossFades {
final from = fromItem;
final to = toItem;
if (from == null || to == null) return false;
if (from.style != to.style ||
from.tintColor != to.tintColor ||
from.enabled != to.enabled) {
return true;
}
if (from is GlassBarTextItem && to is GlassBarTextItem) {
return from.title != to.title || from.textStyle != to.textStyle;
}
return !_sameContent(from.content, to.content);
}