Dice constructor
const
Dice({})
Creates an animated emoji with a random value
emoji
Emoji on which the dice throw animation is based value
Value of
the dice
Implementation
const factory Dice({
/// Emoji on which the dice throw animation is based
@JsonKey(name: 'emoji') required DiceEmoji emoji,
/// Value of the dice.
///
/// 1-6 for "π²", "π―" and "π³" base emoji, 1-5 for "π" and "β½" base
/// emoji, 1-64 for "π°" base emoji
@JsonKey(name: 'value') required int value,
}) = _Dice;