CustomOutlinedButton constructor Null safety

CustomOutlinedButton(
  1. {Key? key,
  2. Widget? child,
  3. double? width,
  4. double? height,
  5. required String text,
  6. Function? onTap,
  7. Color baseColor = CustomColors.emerald,
  8. Color inactiveTextColor = CustomColors.cool_grey,
  9. Color inactiveBorderColor = CustomColors.white_five,
  10. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 9, vertical: 6),
  11. EdgeInsets margin = EdgeInsets.zero,
  12. double borderWidth = 1,
  13. bool isInactive = false,
  14. bool? isChecked,
  15. bool? disabled,
  16. double fontSize = 12.0,
  17. FontWeight fontWeight = FontWeight.w500,
  18. IconData? prefixIcon,
  19. Widget? prefixIconImage,
  20. double? prefixIconSize,
  21. IconData? suffixIcon,
  22. Widget? suffixIconImage,
  23. double? suffixIconSize}
)

Implementation

CustomOutlinedButton({
  Key? key,
  this.child,
  this.width,
  this.height,
  required this.text,
  this.onTap,
  this.baseColor = CustomColors.emerald,
  this.inactiveTextColor = CustomColors.cool_grey,
  this.inactiveBorderColor = CustomColors.white_five,
  this.padding = const EdgeInsets.symmetric(horizontal: 9, vertical: 6),
  this.margin = EdgeInsets.zero,
  this.borderWidth = 1,
  this.isInactive = false,
  this.isChecked,
  this.disabled,
  this.fontSize = 12.0,
  this.fontWeight = FontWeight.w500,
  this.prefixIcon,
  this.prefixIconImage,
  this.prefixIconSize,
  this.suffixIcon,
  this.suffixIconImage,
  this.suffixIconSize,
}) : super(key: key);