RollResult<T> class

The result of a dice roll.

Annotations
  • @immutable

Constructors

RollResult(Iterable<T> rolls)
Creates a new RollResult with the given rolls.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalValue num
The sum of the values of the rolls.
no setter
valueCounts Map<T, int>
A map of the counts of each unique roll value.
no setter
values List<T>
The values of the individual rolls.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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