copyWith method

PiThemeData copyWith({
  1. String? debugLabel,
  2. PiColorData? colorTheme,
  3. 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,
  );
}