Line constructor

Line({
  1. Key? key,
  2. Widget? child,
  3. required Color color,
  4. EdgeInsetsGeometry? margin,
  5. double? width,
  6. double? height,
  7. double? radius,
})

Implementation

Line({
  Key? key,
  this.child,
  required this.color,
  this.margin,
  double? width,
  double? height,
  double? radius,
}) :
    size = Size(width ?? DeviceUtil.screenW.toDouble(), height ?? 1),
    radius = radius ?? 0,
    super(key: key);