from static method

DynamicScheme from(
  1. DynamicScheme other,
  2. bool isDark, [
  3. double? contrastLevel
])

Implementation

static DynamicScheme from(
  DynamicScheme other,
  bool isDark, [
  double? contrastLevel,
]) => DynamicScheme(
  sourceColorHct: other.sourceColorHct,
  variant: other.variant,
  isDark: isDark,
  contrastLevel: contrastLevel ?? other.contrastLevel,
  platform: other.platform,
  specVersion: other.specVersion,
  primaryPalette: other.primaryPalette,
  secondaryPalette: other.secondaryPalette,
  tertiaryPalette: other.tertiaryPalette,
  neutralPalette: other.neutralPalette,
  neutralVariantPalette: other.neutralVariantPalette,
  errorPalette: other.errorPalette,
);