copyWith method

AppStylesState copyWith({
  1. Map<String, ColorStyleEntity>? colorStyles,
  2. Map<String, TextStyleEntity>? textStyles,
})

Implementation

AppStylesState copyWith({
  final Map<String, ColorStyleEntity>? colorStyles,
  final Map<String, TextStyleEntity>? textStyles,
}) {
  return AppStylesState(
    colorStyles: colorStyles ?? this.colorStyles,
    textStyles: textStyles ?? this.textStyles,
  );
}