NomoTextButton constructor

const NomoTextButton({
  1. String? text,
  2. Key? key,
  3. Color? foregroundColor,
  4. double? width,
  5. double? height,
  6. EdgeInsetsGeometry? padding,
  7. EdgeInsetsGeometry? margin,
  8. VoidCallback? onPressed,
  9. bool? enabled,
  10. BorderRadiusGeometry? borderRadius,
  11. TextStyle? textStyle,
  12. BoxShape? shape,
  13. Widget? child,
  14. bool? translate,
  15. bool? expandToConstraints,
})

Implementation

const NomoTextButton({
  this.text,
  super.key,
  this.foregroundColor,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.onPressed,
  this.enabled,
  this.borderRadius,
  this.textStyle,
  this.shape,
  this.child,
  this.translate,
  this.expandToConstraints,
}) : assert(child != null || text != null, 'Must specify child or text');