convert function

FluentColors convert(
  1. MaterialColor colors
)

Implementation

FluentColors convert(MaterialColor colors) {
  return FluentColors(
    brandBackground1Rest: colors[400]!,
    brandBackground1Pressed: colors[100]!,
    brandBackground1Selected: colors[200]!,
    brandBackground2Rest: colors[300]!,
    brandBackground2Pressed: colors[50]!,
    brandBackground2Selected: colors[50]!,
    brandBackground3Rest: colors[200]!,
    brandBackgroundTint: colors[800]!,
    brandBackgroundDisabledRest: colors[700]!,
    brandForeground1Rest: colors[400]!,
    brandForeground1Pressed: colors[100]!,
    brandForeground1Selected: colors[200]!,
    brandForegroundTint: colors[200]!,
    brandForegroundDisabled1Rest: colors[500]!,
    brandForegroundDisabled2Rest: colors[700]!,
    brandStroke1Rest: colors[400]!,
    brandStroke1Pressed: colors[100]!,
    brandStroke1Selected: colors[200]!,
  );
}