NomoTextButton constructor
const
NomoTextButton({
- String? text,
- Key? key,
- Color? foregroundColor,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- VoidCallback? onPressed,
- bool? enabled,
- BorderRadiusGeometry? borderRadius,
- TextStyle? textStyle,
- BoxShape? shape,
- Widget? child,
- bool? translate,
- 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');