PrefButton constructor

const PrefButton({
  1. Key? key,
  2. required Widget child,
  3. Color? color,
  4. Color? textColor,
  5. Decoration? decoration,
  6. Widget? leading,
  7. Widget? title,
  8. Widget? subtitle,
  9. VoidCallback? onTap,
})

Create a PrefButton Widget

Implementation

const PrefButton({
  super.key,
  required this.child,
  this.color,
  this.textColor,
  this.decoration,
  this.leading,
  this.title,
  this.subtitle,
  this.onTap,
}) : assert(title != child,
          'Use a title to define your own button or child for the button content');