supportsPositionSticky top-level property
Whether the browser supports position: sticky.
Implementation
final bool supportsPositionSticky = () {
var el = DivElement();
el.style.cssText = 'position: sticky';
return el.style.position == 'sticky';
}();