IconButtonWidget constructor

IconButtonWidget({
  1. Key? key,
  2. required String text,
  3. required IconData icon,
  4. VoidCallback? onTap,
  5. Color? backgroundColor,
  6. Color? textColor,
  7. double? width,
  8. double? height,
  9. double? borderRadius,
  10. bool showBorder = false,
})

Implementation

IconButtonWidget({
  super.key,
  required String text,
  required IconData icon,
  VoidCallback? onTap,
  Color? backgroundColor,
  Color? textColor,
  double? width,
  double? height,
  double? borderRadius,
  bool showBorder = false,
}) : super(
  text: text,
  onTap: onTap,
  backgroundColor: backgroundColor,
  textColor: textColor,
  width: width,
  height: height,
  borderRadius: borderRadius,
  showBorder: showBorder,
  leading: Icon(icon, color: textColor ?? ColorResource.whiteColor, size: 18),
);