SessionResult class

The final result of a slot machine session.

This encapsulates the last Result as well as whether or not the session had any re-roll (wasRerolled).

Constructors

SessionResult(Result result, bool wasRerolled)
Creates a RollResult with information about rerolling.
const

Properties

hashCode → int
The hash code for this object. [...]
read-only, override
isSuccess → bool
Whether the session ended with success (but not critical success).
read-only
result Result
The final result of the roll.
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
wasRerolled → bool
Whether or not the user rerolled after first initial failure.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
override