StringWalker class
Class to walk through the integers within the range Use ListWalker
- Inheritance
-
- Object
- DataWalker<
String> - StringWalker
Constructors
Properties
- currentNo ↔ int
-
Current index
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFinished ↔ bool
-
Flag showing there is no more iteration to go
getter/setter pairinherited
- isRandom ↔ bool
-
Get random index rather than increase sequentially
latefinalinherited
- lastNo ↔ int
-
Last index
latefinalinherited
- lastRepeatNo ↔ int
-
Last repeat index
latefinalinherited
- length → int
-
Number of sequential steps or the value for random.nextInt()
finalinherited
- maxLength → int
-
Highest possible value within the range
final
- minLength → int
-
Lowest possible value within the range
final
- random ↔ Random
-
Random number generator
latefinalinherited
- randomUnicode → RandomUnicode
-
Random Unicode string generator
final
- repeatNo ↔ int
-
Current repeat number
getter/setter pairinherited
- repeats → int
-
How many times to repeat length increments
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → Object?
-
Anything to store for sub-classes
finalinherited
- stepLength → int
-
Increment to move from the previous value to the next one
final
Methods
-
copyWith(
{RandomUnicode? randomUnicode, int? minLength, int? maxLength, int? stepLength, int? repeats, bool? isRandomLength, Random? random}) → StringWalker - Copy constructor
-
current(
) → String -
Get the current value
inherited
-
next(
[bool isNext = true]) → String -
Move to the next value
override
-
nextNo(
[bool isNext = true]) → int -
Set currentNo to the next value
Increase repeatNo when currentNo reaches length and reset currentNo
Returns -1 when repeatNo reaches repeats
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Reset currentNo and repeatNo
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited