NativeBaseTheme constructor Null safety

NativeBaseTheme(
  1. {NBFontSizes? fontSize,
  2. NBLetterSpacings? letterSpacing,
  3. NBFontWeights? fontWeight,
  4. NBLineHeights? lineHeight,
  5. NBComponent? component,
  6. NBSpaces? spaces,
  7. NBSizes? sizes,
  8. NBBorders? borders,
  9. NBRadius? radiuses,
  10. NativeBaseColor? colors,
  11. NBShadows? shadows}
)

Implementation

NativeBaseTheme({
  NBFontSizes? fontSize,
  NBLetterSpacings? letterSpacing,
  NBFontWeights? fontWeight,
  NBLineHeights? lineHeight,
  NBComponent? component,
  NBSpaces? spaces,
  NBSizes? sizes,
  NBBorders? borders,
  NBRadius? radiuses,
  NativeBaseColor? colors,
  NBShadows? shadows,
})  : fontSize = fontSize ?? nbFontSizes,
      letterSpacing = letterSpacing ?? baseLetterSpacings,
      fontWeight = fontWeight ?? baseNBFontWeights,
      lineHeight = lineHeight ?? baseLineHeights,
      component = component ?? baseComponents,
      spaces = spaces ?? nbBaseSpaces,
      sizes = sizes ?? nbBaseSizes,
      borders = borders ?? nbBorders,
      radiuses = radiuses ?? nbRadius,
      color = colors ?? nbColor,
      shadows = shadows ?? nbShadow;