XDivider constructor

const XDivider({
  1. Key? key,
  2. required Direction direction,
  3. double width = 1,
  4. double height = 1,
  5. Color color = Colors.black12,
})

分割线方向,默认为水平

分割线宽度,默认为1

分割线高度,默认为1

分割线颜色,默认为Colors.black12

Implementation

const XDivider({
  super.key,
  required this.direction,
  this.width = 1,
  this.height = 1,
  this.color = Colors.black12,
});