BackgroundType.chatTheme constructor

const BackgroundType.chatTheme({
  1. @JsonKey(name: 'type') @Default(BackgroundTypeType.chatTheme) BackgroundTypeType type,
  2. @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;