isSticky static method

bool isSticky(
  1. RenderBoxModel child
)

Implementation

static bool isSticky(RenderBoxModel child) {
  final renderStyle = child.renderStyle;
  return renderStyle.position == CSSPositionType.sticky &&
      (renderStyle.top.isNotAuto ||
          renderStyle.left.isNotAuto ||
          renderStyle.bottom.isNotAuto ||
          renderStyle.right.isNotAuto);
}