ButtonDefault constructor

const ButtonDefault({
  1. Key? key,
  2. required String title,
  3. required VoidCallback onPressed,
  4. double? width = double.infinity,
  5. EdgeInsets margin = const EdgeInsets.all(0),
  6. Color? color,
  7. double elevation = 3,
  8. bool isLoading = false,
  9. bool isEnabled = true,
  10. IconData? iconData,
  11. bool? iconDataPrefixPosition = false,
})

Implementation

const ButtonDefault({
  super.key,
  required this.title,
  required this.onPressed,
  this.width = double.infinity,
  this.margin = const EdgeInsets.all(0),
  this.color,
  this.elevation = 3,
  this.isLoading = false,
  this.isEnabled = true,
  this.iconData,
  this.iconDataPrefixPosition = false,
});