copyWith method

EditorSetting copyWith({
  1. Map<String, Set<Sticker>>? stickers,
  2. List<EditorBackground>? backgrounds,
  3. int? fixedTabSize,
  4. List<Color>? colors,
})

Helper function to copy object

Implementation

EditorSetting copyWith({
  Map<String, Set<Sticker>>? stickers,
  List<EditorBackground>? backgrounds,
  int? fixedTabSize,
  List<Color>? colors,
}) {
  return EditorSetting(
    stickers: stickers ?? this.stickers,
    backgrounds: backgrounds ?? this.backgrounds,
    fixedTabSize: fixedTabSize ?? this.fixedTabSize,
    colors: colors ?? this.colors,
  );
}