PrimaryNomoButton constructor

const PrimaryNomoButton({
  1. Key? key,
  2. ActionType type = ActionType.def,
  3. String? text,
  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 = const BorderRadius.all(Radius.circular(6)),
  16. TextStyle? textStyle,
  17. double? iconSize,
  18. BoxShape? shape,
  19. Widget? child,
  20. bool? expandToConstraints,
  21. bool? translate,
  22. Axis direction = Axis.horizontal,
})

Implementation

const PrimaryNomoButton({
  super.key,
  this.type = ActionType.def,
  this.text,
  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 = const BorderRadius.all(Radius.circular(6)),
  this.textStyle,
  this.iconSize,
  this.shape,
  this.child,
  this.expandToConstraints,
  this.translate,
  this.direction = Axis.horizontal,
}) : assert(
        child == null || (icon == null && text == null),
        'Either Specify child or text and icon',
      );