copyWith method

NiceThemeData copyWith({
  1. Brightness? brightness,
  2. NiceColorScheme? colors,
  3. NiceTypography? typography,
  4. double? borderRadius,
  5. double? inputHeight,
  6. double? spacing,
})

Implementation

NiceThemeData copyWith({
  Brightness? brightness,
  NiceColorScheme? colors,
  NiceTypography? typography,
  double? borderRadius,
  double? inputHeight,
  double? spacing,
}) {
  return NiceThemeData(
    brightness: brightness ?? this.brightness,
    colors: colors ?? this.colors,
    typography: typography ?? this.typography,
    borderRadius: borderRadius ?? this.borderRadius,
    inputHeight: inputHeight ?? this.inputHeight,
    spacing: spacing ?? this.spacing,
  );
}