AuthButtonGroup constructor Null safety

const AuthButtonGroup(
  1. {Key? key,
  2. required List<AuthButton> buttons,
  3. AuthButtonStyle? style,
  4. TextDirection textDirection = TextDirection.ltr,
  5. ButtonStyle? materialStyle,
  6. Axis orientation = Axis.horizontal,
  7. double? spacing,
  8. double? runSpacing,
  9. WrapAlignment alignment = WrapAlignment.start,
  10. WrapAlignment runAlignment = WrapAlignment.start,
  11. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  12. VerticalDirection direction = VerticalDirection.down}
)

Implementation

const AuthButtonGroup({
  super.key,
  required this.buttons,
  this.style,
  this.textDirection = TextDirection.ltr,
  this.materialStyle,
  this.orientation = Axis.horizontal,
  this.spacing,
  this.runSpacing,
  this.alignment = WrapAlignment.start,
  this.runAlignment = WrapAlignment.start,
  this.crossAxisAlignment = WrapCrossAlignment.start,
  this.direction = VerticalDirection.down,
}) : assert(buttons.length >= 2, 'buttons must be more than one');