PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. required Widget child,
  4. Color? color,
  5. bool expand = true,
})

Implementation

const PrimaryButton({
  super.key,
  this.onPressed,
  required this.child,
  this.color,
  this.expand = true,
});