Line constructor

const Line({
  1. Key? key,
  2. double width = double.infinity,
  3. double height = 1,
  4. Color? color,
})

Implementation

const Line({
  super.key,
  this.width = double.infinity,
  this.height = 1,
  Color? color,
}) : color = color ?? Colors.grey;