foregroundColor property

Color get foregroundColor

Implementation

Color get foregroundColor {
  if (widget.textColor != null) {
    return widget.textColor!;
  }
  if (widget.outlined) {
    return borderColor;
  }
  return foregroundColorByLuminance(backgroundColor);
}