Line constructor

Line({
  1. Key? key,
  2. required double width,
  3. required double height,
  4. EdgeInsets? padding,
  5. EdgeInsets? margin,
  6. Color? color,
})

Implementation

Line(
    {Key? key,
    required this.width,
    required this.height,
    this.padding,
    this.margin,
    this.color})
    : super(key: key) {
  this.color ??= Colors.white;
}