setBackgroundColor method
Implementation
Color setBackgroundColor(BuildContext context) {
if (invertColors == true) return Colors.white;
if (outline == true) return Colors.transparent;
if (color != null) return color!;
return onTap == null || disabled == true
? Colors.grey[300]!
: Theme.of(context).primaryColor;
}