ConsistentSymbolTapeStrategy class

Constructs symbol tapes that contain all the characters that are contained between two strings in alphabetical order up to the given distance.

The distance does not include the characters that are being interpolated, rather only the characters that are between them.

eg: Interpolating between the letters a and z with a distance of 2 will result in the creation of a tape containing abyz.

Interpolating between `a` and `c` with a distance of 2 will result
in the creation of a tape containing `abcc`.

Interpolating between `a` and `c` with a distance of 0 will result
in the creation of a tape containing `ac`.

Interpolating between `a` and `c` with a distance of 5 will result
in the creation of a tape containing `abbbccc`.

Interpolating between `W` and `W` with a distance of 2 will result
in the creation of a tape containing `WWWW`.
Inheritance

Constructors

ConsistentSymbolTapeStrategy(int distance, [bool repeatCharacters = true])
Creates a new ConsistentSymbolTapeStrategy with the given distance and repeatCharacters properties.
const

Properties

distance int
The number of symbols to include between the two strings.
final
hashCode int
The hash code for this object.
no setterinherited
repeatCharacters bool
If repeatCharacters is true, it means that characters that are repeated between interpolations in the tape of each character will be repeated instead of optimized to only render once. eg: Interpolating between World and Whale, the W and l will both be rendered and animated to roll twice instead of just once.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(String a, String b) String
Builds the tape of characters to interpolate to and from.
override
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