predominantGradient method Null safety

Background predominantGradient(
  1. [PredominantGradientBackground? predominantGradientBackground]
)

Implementation

static Background predominantGradient(
    [PredominantGradientBackground? predominantGradientBackground]) {
  if (predominantGradientBackground != null) {
    return predominantGradientBackground;
  }
  return PredominantGradientBackground();
}