predominant method Null safety

Background predominant(
  1. [PredominantBackground? predominantBackground]
)

Implementation

static Background predominant(
    [PredominantBackground? predominantBackground]) {
  if (predominantBackground != null) {
    return predominantBackground;
  }
  return PredominantBackground();
}