setTextColor method
Implementation
Color setTextColor(BuildContext context) {
if (invertColors == true) return Theme.of(context).primaryColor;
if (outline == true) return textColor ?? Theme.of(context).primaryColor;
if (color == Colors.black) return Colors.white;
return Colors.white;
}