copyWith method
MinThemeData
copyWith({
- MinColors? colors,
- MinTypography? typography,
- MinRadiusScale? radius,
- MinSpacing? spacing,
- MinShadows? shadows,
- 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,
);
}