OudsButton constructor

const OudsButton({
  1. Key? key,
  2. String? label,
  3. String? icon,
  4. VoidCallback? onPressed,
  5. Loader? loader,
  6. bool? isLoading = false,
  7. required OudsButtonAppearance appearance,
  8. String? package,
  9. bool? isFullWidth = false,
})

Implementation

const OudsButton({
  super.key,
  this.label,
  this.icon,
  this.onPressed,
  this.loader,
  this.isLoading = false,
  required this.appearance,
  this.package,
  this.isFullWidth = false,
}) : _size = OudsButtonSize.defaultSize,
     _component = OudsButtonComponent.defaultButton,
     _navigationLayout = null,
     _semanticsLabel = null;