ButtonsStyle constructor Null safety

const ButtonsStyle(
  1. {@required String? text,
  2. Color backgroundColor = Colors.white,
  3. Color textColor = Colors.black,
  4. double radius = 5,
  5. bool visible = true}
)

Implementation

const ButtonsStyle({
  @required this.text,
  this.backgroundColor = Colors.white,
  this.textColor = Colors.black,
  this.radius = 5,
  this.visible = true,
}) : assert(text != null);