BackgroundType.chatTheme constructor
const
BackgroundType.chatTheme({
- @JsonKey(name: 'type') @Default(BackgroundTypeType.chatTheme) BackgroundTypeType type,
- @JsonKey(name: 'theme_name') required String themeName,
The background is taken directly from a built-in chat theme.
Implementation
const factory BackgroundType.chatTheme({
/// Type of the background - always fill
@JsonKey(name: 'type')
@Default(BackgroundTypeType.chatTheme)
BackgroundTypeType type,
/// Name of the chat theme, which is usually an emoji
@JsonKey(name: 'theme_name') required final String themeName,
}) = BackgroundTypeChatTheme;