SecondaryNomoButton constructor

const SecondaryNomoButton({
  1. Key? key,
  2. String? text,
  3. ActionType type = ActionType.def,
  4. IconData? icon,
  5. double? spacing = 12,
  6. Color? backgroundColor,
  7. Color? foregroundColor,
  8. double? elevation,
  9. double? width,
  10. double? height,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
  13. VoidCallback? onPressed,
  14. bool? enabled,
  15. BorderRadiusGeometry? borderRadius,
  16. TextStyle? textStyle,
  17. double? iconSize,
  18. BoxShape? shape,
  19. Border? border,
  20. Color? selectionColor,
  21. Widget? child,
  22. bool? expandToConstraints,
  23. bool? translate,
  24. Axis direction = Axis.horizontal,
})

Implementation

const SecondaryNomoButton({
  super.key,
  this.text,
  this.type = ActionType.def,
  this.icon,
  this.spacing = 12,
  this.backgroundColor,
  this.foregroundColor,
  this.elevation,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.onPressed,
  this.enabled,
  this.borderRadius,
  this.textStyle,
  this.iconSize,
  this.shape,
  this.border,
  this.selectionColor,
  this.child,
  this.expandToConstraints,
  this.translate,
  this.direction = Axis.horizontal,
}) : assert(
        child == null || (icon == null && text == null),
        'Either Specify child or text and icon',
      );