copyWith method
M3ETheme
copyWith({
- M3EColors? colors,
- M3ETypography? typography,
- M3EShapes? shapes,
- M3ESpacing? spacing,
- M3EMotion? motion,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
M3ETheme copyWith({
M3EColors? colors,
M3ETypography? typography,
M3EShapes? shapes,
M3ESpacing? spacing,
M3EMotion? motion,
}) =>
M3ETheme(
colors: colors ?? this.colors,
typography: typography ?? this.typography,
shapes: shapes ?? this.shapes,
spacing: spacing ?? this.spacing,
motion: motion ?? this.motion,
);