copyWith method
MixThemeData
copyWith({
- Map<
BreakpointToken, Breakpoint> ? breakpoints, - Map<
ColorToken, Color> ? colors, - Map<
SpaceToken, double> ? spaces, - Map<
TextStyleToken, TextStyle> ? textStyles, - Map<
RadiusToken, Radius> ? radii,
Implementation
MixThemeData copyWith({
Map<BreakpointToken, Breakpoint>? breakpoints,
Map<ColorToken, Color>? colors,
Map<SpaceToken, double>? spaces,
Map<TextStyleToken, TextStyle>? textStyles,
Map<RadiusToken, Radius>? radii,
}) {
return MixThemeData.raw(
textStyles:
textStyles == null ? this.textStyles : StyledTokens(textStyles),
colors: colors == null ? this.colors : StyledTokens(colors),
breakpoints:
breakpoints == null ? this.breakpoints : StyledTokens(breakpoints),
radii: radii == null ? this.radii : StyledTokens(radii),
spaces: spaces == null ? this.spaces : StyledTokens(spaces),
);
}