buildDivider method
Implementation
Widget buildDivider([bool isVertical = false]) {
EdgeInsets? margin;
if (dividerMargin != null) {
if (isVertical) {
margin = EdgeInsets.only(
top: dividerMargin!.top, bottom: dividerMargin!.bottom);
} else {
margin = EdgeInsets.only(
left: dividerMargin!.left, right: dividerMargin!.right);
}
}
return Container(
margin: margin,
width: isVertical ? dividerThickness : double.infinity,
height: isVertical ? double.infinity : dividerThickness,
color: dividerColor);
}