VarxButton constructor
const
VarxButton({
- Key? key,
- VarxButtonType type = VarxButtonType.primary,
- dynamic onTap()?,
- required String label,
- Widget? prefixIcon,
- IconData? prefixIconData,
- Widget? suffixIcon,
- IconData? suffixIconData,
- Widget? loadingIndicator,
- bool isLoading = false,
- BorderRadius? borderRadius,
- Color? loadingColor,
- ButtonStyle? buttonStyle,
- Color? primary,
- Color? onprimary,
- bool fullWidth = true,
Implementation
const VarxButton({
Key? key,
this.type = VarxButtonType.primary,
this.onTap,
required this.label,
this.prefixIcon,
this.prefixIconData,
this.suffixIcon,
this.suffixIconData,
this.loadingIndicator,
this.isLoading = false,
this.borderRadius,
this.loadingColor,
this.buttonStyle,
this.primary,
this.onprimary,
this.fullWidth = true,
}) : super(key: key);