divideX method

FlexBuilder divideX({
  1. Color? color,
  2. double? width,
  3. BorderStyle? style,
})

divide-x -> 在水平方向的子元素之间添加垂直分隔线

Implementation

FlexBuilder divideX({Color? color, double? width, BorderStyle? style}) {
  _divideX = true;
  _divideY = false;
  if (color != null) _divideColor = color;
  if (width != null) _divideWidth = width;
  // 注意:style 参数保留以便将来扩展,但目前 Flutter Container 不支持 BorderStyle
  return this;
}