RollResult<T> constructor

RollResult<T>(
  1. Iterable<T> rolls
)

Creates a new RollResult with the given rolls.

The rolls are stored in an unmodifiable list.

Implementation

RollResult(Iterable<T> rolls) : _rolls = List<T>.unmodifiable(rolls);