button method

Widget button(
  1. BuildContext context,
  2. String? text,
  3. Function? onPressed, {
  4. IconData? icon,
  5. Widget? leading,
  6. Widget? trailing,
  7. Widget? content,
  8. Color? color,
  9. Color? textColor,
  10. bool loading = false,
  11. double? borderRadius,
})

Implementation

Widget button(BuildContext context, String? text, Function? onPressed,
    {IconData? icon,
    Widget? leading,
    Widget? trailing,
    Widget? content,
    Color? color,
    Color? textColor,
    bool loading = false,
    double? borderRadius}) {
  return CustomButton(
    text: text,
    onPressed: onPressed,
    icon: icon,
    leading: leading,
    trailing: trailing,
    content: content,
    color: color,
    textColor: textColor,
    loading: loading,
    borderRadius: borderRadius,
  );
}