Palette constructor

Palette({
  1. ScanbotColor? sbColorPrimary,
  2. ScanbotColor? sbColorPrimaryDisabled,
  3. ScanbotColor? sbColorNegative,
  4. ScanbotColor? sbColorPositive,
  5. ScanbotColor? sbColorWarning,
  6. ScanbotColor? sbColorSecondary,
  7. ScanbotColor? sbColorSecondaryDisabled,
  8. ScanbotColor? sbColorOnPrimary,
  9. ScanbotColor? sbColorOnSecondary,
  10. ScanbotColor? sbColorSurface,
  11. ScanbotColor? sbColorOutline,
  12. ScanbotColor? sbColorOnSurfaceVariant,
  13. ScanbotColor? sbColorOnSurface,
  14. ScanbotColor? sbColorSurfaceLow,
  15. ScanbotColor? sbColorSurfaceHigh,
  16. ScanbotColor? sbColorModalOverlay,
})

Implementation

Palette({
  ScanbotColor? sbColorPrimary,
  ScanbotColor? sbColorPrimaryDisabled,
  ScanbotColor? sbColorNegative,
  ScanbotColor? sbColorPositive,
  ScanbotColor? sbColorWarning,
  ScanbotColor? sbColorSecondary,
  ScanbotColor? sbColorSecondaryDisabled,
  ScanbotColor? sbColorOnPrimary,
  ScanbotColor? sbColorOnSecondary,
  ScanbotColor? sbColorSurface,
  ScanbotColor? sbColorOutline,
  ScanbotColor? sbColorOnSurfaceVariant,
  ScanbotColor? sbColorOnSurface,
  ScanbotColor? sbColorSurfaceLow,
  ScanbotColor? sbColorSurfaceHigh,
  ScanbotColor? sbColorModalOverlay,
})  : sbColorPrimary = sbColorPrimary ?? ScanbotColor("#C8193C"),
      sbColorPrimaryDisabled =
          sbColorPrimaryDisabled ?? ScanbotColor("#F5F5F5"),
      sbColorNegative = sbColorNegative ?? ScanbotColor("#FF3737"),
      sbColorPositive = sbColorPositive ?? ScanbotColor("#4EFFB4"),
      sbColorWarning = sbColorWarning ?? ScanbotColor("#FFCE5C"),
      sbColorSecondary = sbColorSecondary ?? ScanbotColor("#FFEDEE"),
      sbColorSecondaryDisabled =
          sbColorSecondaryDisabled ?? ScanbotColor("#F5F5F5"),
      sbColorOnPrimary = sbColorOnPrimary ?? ScanbotColor("#FFFFFF"),
      sbColorOnSecondary = sbColorOnSecondary ?? ScanbotColor("#C8193C"),
      sbColorSurface = sbColorSurface ?? ScanbotColor("#FFFFFF"),
      sbColorOutline = sbColorOutline ?? ScanbotColor("#EFEFEF"),
      sbColorOnSurfaceVariant =
          sbColorOnSurfaceVariant ?? ScanbotColor("#707070"),
      sbColorOnSurface = sbColorOnSurface ?? ScanbotColor("#000000"),
      sbColorSurfaceLow = sbColorSurfaceLow ?? ScanbotColor("#00000026"),
      sbColorSurfaceHigh = sbColorSurfaceHigh ?? ScanbotColor("#0000007A"),
      sbColorModalOverlay = sbColorModalOverlay ?? ScanbotColor("#000000A3");