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
wasRerolled bool
Whether or not the user rerolled after first initial failure.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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