GiftBackground class abstract

This object describes the background of a gift.

Available extensions
Annotations
  • @freezed

Constructors

GiftBackground({@JsonKey.new(name: 'center_color') required int centerColor, @JsonKey.new(name: 'edge_color') required int edgeColor, @JsonKey.new(name: 'text_color') required int textColor})
Creates a new GiftBackground object.
const
factory
GiftBackground.fromJson(Map<String, dynamic> json)
Creates a new GiftBackground object from a JSON Map.
factory

Properties

centerColor int
Center color of the background in RGB format
no setterinherited
copyWith → $GiftBackgroundCopyWith<GiftBackground>
Create a copy of GiftBackground with the given fields replaced by the non-null parameter values.
no setterinherited
edgeColor int
Edge color of the background in RGB format
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor int
Text color of the background in RGB format
no setterinherited

Methods

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

Available on GiftBackground, provided by the GiftBackgroundPatterns extension

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

Available on GiftBackground, provided by the GiftBackgroundPatterns extension

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

Available on GiftBackground, provided by the GiftBackgroundPatterns 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 GiftBackground to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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