copyWith method

MinThemeData copyWith({
  1. MinColors? colors,
  2. MinTypography? typography,
  3. MinRadiusScale? radius,
  4. MinSpacing? spacing,
  5. MinShadows? shadows,
  6. MinMotion? motion,
})

Implementation

MinThemeData copyWith({
  MinColors? colors,
  MinTypography? typography,
  MinRadiusScale? radius,
  MinSpacing? spacing,
  MinShadows? shadows,
  MinMotion? motion,
}) {
  final nextColors = colors ?? this.colors;
  return MinThemeData(
    colors: nextColors,
    typography:
        typography ??
        this.typography.apply(mutedColor: nextColors.mutedForeground),
    radius: radius ?? this.radius,
    spacing: spacing ?? this.spacing,
    shadows: shadows ?? this.shadows,
    motion: motion ?? this.motion,
  );
}