copyWith method
PiThemeData
copyWith({
- String? debugLabel,
- PiColorData? colorTheme,
- PiButtonThemeData? piButtonThemeData,
Creates a copy of this VThemeData with the given fields replaced with the new values
Implementation
PiThemeData copyWith({
String? debugLabel,
PiColorData? colorTheme,
PiButtonThemeData? piButtonThemeData,
}) {
return PiThemeData(
debugLabel: debugLabel ?? this.debugLabel,
colorTheme: colorTheme ?? this.colorTheme,
piButtonThemeData: piButtonThemeData ?? this.piButtonThemeData,
);
}