UniqueGiftColors class abstract

This object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift.

Available extensions
Annotations
  • @freezed

Constructors

UniqueGiftColors({@JsonKey.new(name: 'model_custom_emoji_id') required String modelCustomEmojiId, @JsonKey.new(name: 'symbol_custom_emoji_id') required String symbolCustomEmojiId, @JsonKey.new(name: 'light_theme_main_color') required int lightThemeMainColor, @JsonKey.new(name: 'light_theme_other_colors') required List<int> lightThemeOtherColors, @JsonKey.new(name: 'dark_theme_main_color') required int darkThemeMainColor, @JsonKey.new(name: 'dark_theme_other_colors') required List<int> darkThemeOtherColors})
Creates a new UniqueGiftColors object.
const
factory
UniqueGiftColors.fromJson(Map<String, dynamic> json)
Creates a new UniqueGiftColors object from a JSON Map.
factory

Properties

copyWith → $UniqueGiftColorsCopyWith<UniqueGiftColors>
Create a copy of UniqueGiftColors with the given fields replaced by the non-null parameter values.
no setterinherited
darkThemeMainColor int
Main color used in dark themes; RGB format
no setterinherited
darkThemeOtherColors List<int>
List of 1-3 additional colors used in dark themes; RGB format
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
lightThemeMainColor int
Main color used in light themes; RGB format
no setterinherited
lightThemeOtherColors List<int>
List of 1-3 additional colors used in light themes; RGB format
no setterinherited
modelCustomEmojiId String
Custom emoji identifier of the unique gift's model
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbolCustomEmojiId String
Custom emoji identifier of the unique gift's symbol
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_UniqueGiftColors value)) → TResult

Available on UniqueGiftColors, provided by the UniqueGiftColorsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_UniqueGiftColors value)?) → TResult?

Available on UniqueGiftColors, provided by the UniqueGiftColorsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_UniqueGiftColors value)?, {required TResult orElse()}) → TResult

Available on UniqueGiftColors, provided by the UniqueGiftColorsPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this UniqueGiftColors to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited