divideY method

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

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

Implementation

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