copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
CreateTextCompositionStyle copyWith({
String? title,
int? customEmojiId,
String? prompt,
bool? showCreator,
}) => CreateTextCompositionStyle(
title: title ?? this.title,
customEmojiId: customEmojiId ?? this.customEmojiId,
prompt: prompt ?? this.prompt,
showCreator: showCreator ?? this.showCreator,
);