copyWith method
MonetThemeData
copyWith({
- Palette? primary,
- Palette? secondary,
- Palette? tertiary,
- Algo? algo,
- ColorModel? colorModel,
- double? backgroundTone,
- Brightness? brightness,
- double? contrast,
- double? scale,
- MonetShapeTheme? shapeTheme,
- Typography typography(
- ColorScheme
- bool? compactLineHeights,
- double? lineHeightClearance,
Copies theme fields and palette values verbatim. Policy fields do not re-solve arbitrary Palette adapters; when changing background tone, contrast, algorithm, or model for a logical endpoint, also supply palettes constructed with those inputs. Motion frames intentionally rely on this.
Implementation
MonetThemeData copyWith({
Palette? primary,
Palette? secondary,
Palette? tertiary,
Algo? algo,
ColorModel? colorModel,
double? backgroundTone,
Brightness? brightness,
double? contrast,
double? scale,
MonetShapeTheme? shapeTheme,
Typography Function(ColorScheme)? typography,
bool? compactLineHeights,
double? lineHeightClearance,
}) {
return MonetThemeData(
primary: primary ?? this.primary,
secondary: secondary ?? this.secondary,
tertiary: tertiary ?? this.tertiary,
algo: algo ?? this.algo,
colorModel: colorModel ?? this.colorModel,
backgroundTone: backgroundTone ?? this.backgroundTone,
brightness: brightness ?? this.brightness,
contrast: contrast ?? this.contrast,
scale: scale ?? this.scale,
shapeTheme: shapeTheme ?? this.shapeTheme,
typography: typography ?? this.typography,
compactLineHeights: compactLineHeights ?? this.compactLineHeights,
lineHeightClearance: lineHeightClearance ?? this.lineHeightClearance,
);
}