RectangleWithText constructor

const RectangleWithText({
  1. Key? key,
  2. required String text,
  3. double width = 200.0,
  4. double height = 100.0,
  5. Color backgroundColor = Colors.blue,
  6. Color textColor = Colors.white,
})

Implementation

const RectangleWithText({
  Key? key,
  required this.text,
  this.width = 200.0,
  this.height = 100.0,
  this.backgroundColor = Colors.blue,
  this.textColor = Colors.white,
}) : super(key: key);