isFlexNone method

bool isFlexNone(
  1. RenderBox child
)

Implementation

bool isFlexNone(RenderBox child) {
  // Placeholder have the safe effect to flex: none.
  if (child is RenderPositionPlaceholder) {
    return true;
  }
  double flexGrow = _getFlexGrow(child);
  double flexShrink = _getFlexShrink(child);
  double? flexBasis = _getFlexBasis(child);
  return flexBasis == null && flexGrow == 0 && flexShrink == 0;
}