foreground method

Paint? foreground()

Implementation

Paint? foreground() {
  if (color?.color != null) {
    return Paint()..color = color!.color!;
  }

  if (foregroundGradient != null) {
    return foregroundGradient!.getPaint();
  }

  return null;
}