ChipAction function

Widget ChipAction(
  1. String label,
  2. Icon? icon,
  3. VoidCallback onPressed
)

Implementation

Widget ChipAction(String label, Icon? icon, VoidCallback onPressed) {
  return ActionChip(
      label: label.text(),
      avatar: (icon == null
          ? null
          : CircleAvatar(
              backgroundColor: Colors.transparent,
              foregroundColor: globalTheme.textTheme.labelMedium?.color,
              child: icon,
            )),
      onPressed: onPressed);
}