addDivider method

void addDivider({
  1. double? indent,
  2. double? endIndent,
  3. double vertical = 10.0,
  4. Color? color,
})

分割线

Implementation

void addDivider(
    {double? indent,
    double? endIndent,
    double vertical = 10.0,
    Color? color}) {
  _children.add(
    Padding(
      padding: EdgeInsets.symmetric(vertical: vertical),
      child: Divider(
        color: color,
        height: 1.0,
        thickness: 1.0,
        indent: indent,
        endIndent: endIndent,
      ),
    ),
  );
}