actionOnPrimary method

Widget actionOnPrimary(
  1. VoidCallback? onPressed, {
  2. Color? color,
})

Implementation

Widget actionOnPrimary(VoidCallback? onPressed, {Color? color}) {
  return TextButton(
    onPressed: onPressed,
    child: text(color: color ?? globalTheme.colorScheme.onPrimary),
  );
}