copyWith method
XMetricsData
copyWith({
- XBoxShadowsData? boxShadows,
- XBreakpointsData? breakpoints,
- XDurationsData? durations,
- XElevationsData? elevations,
- XFormFactor? formFactor,
- XIconSizesData? iconSizes,
- XRadiiData? radii,
- XSpacesData? spaces,
- XTextShadowsData? textShadows,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
XMetricsData copyWith({
XBoxShadowsData? boxShadows,
XBreakpointsData? breakpoints,
XDurationsData? durations,
XElevationsData? elevations,
XFormFactor? formFactor,
// XGoogleFontsData? googleFonts,
XIconSizesData? iconSizes,
XRadiiData? radii,
XSpacesData? spaces,
XTextShadowsData? textShadows,
}) {
return XMetricsData(
boxShadows: boxShadows ?? this.boxShadows,
breakpoints: breakpoints ?? this.breakpoints,
durations: durations ?? this.durations,
elevations: elevations ?? this.elevations,
formFactor: formFactor ?? this.formFactor,
// googleFonts: googleFonts ?? this.googleFonts,
iconSizes: iconSizes ?? this.iconSizes,
radii: radii ?? this.radii,
spaces: spaces ?? this.spaces,
textShadows: textShadows ?? this.textShadows,
);
}