button method

Widget button({
  1. void onPressed()?,
  2. Color? color,
  3. Color? textColor,
})

Implementation

Widget button({
  void Function()? onPressed,
  Color? color,
  Color? textColor,
}) {
  return textColor == null
      ? color == null
          ? text.fullWhite.px10.py5.container.sky500.roundedMd.inkWell(
              onTap: onPressed,
            )
          : text.fullWhite.px10.py5.container
              .setColor(color)
              .roundedMd
              .inkWell(
                onTap: onPressed,
              )
      : color == null
          ? text.color(textColor).px10.py5.container.sky500.roundedMd.inkWell(
                onTap: onPressed,
              )
          : text
              .color(textColor)
              .px10
              .py5
              .container
              .setColor(color)
              .roundedMd
              .inkWell(
                onTap: onPressed,
              );
}