hLine method

Widget hLine({
  1. dynamic color = UIData.lineBg,
  2. num mH = 0,
})

Implementation

Widget hLine({color = UIData.lineBg, num mH = 0}) {
  final lineView = HStack([
    Container(
      color: color,
      height: UIData.lineH,
      width: hsp,
    ).expand()
  ]);
  return mH < 1
      ? lineView
      : lineView.box.margin(EdgeInsets.symmetric(horizontal: mH.hsp)).make();
}