UIButtonContent function

Widget UIButtonContent(
  1. UIButtonDefaults? as,
  2. String? label,
  3. Color? labelColor,
  4. Widget? icon,
)

Button Content

Implementation

// ignore: non_constant_identifier_names
Widget UIButtonContent(UIButtonDefaults? as, String? label, Color? labelColor, Widget? icon) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      Expanded(
        child: Center(
          child: UIButtonLabel(as, label, labelColor),
        ),
      ),
      icon ?? SizedBox.shrink(),
    ],
  );
}