Fortune class abstract
Static methods for common tasks when working with FortuneWidgets.
Constructors
- Fortune()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
randomDuration(
Duration min, Duration max, [Random? random]) → Duration -
Generates a random Duration uniformly distributed in the range
from
min
, inclusive, tomax
, exclusive. -
randomInt(
int min, int max, [Random? random]) → int -
Generates a random integer uniformly distributed in the range
from
min
, inclusive, tomax
, exclusive. -
randomItem<
T> (Iterable< T> iterable, [Random? random]) → T -
Picks a random item from
iterable
and returns it.