TypeWriterValue class

Value used in TypeWriterController.

data is a list of String text to be written. index is the end index of the text that want to be written.

final value = TypeWriterValue(['Hello ', 'World'], index: 5);
print(value.text); // Hello

Constructors

TypeWriterValue(Iterable<String> data, {int index = 0})
Constructor for TypeWriterValue.

Properties

data Iterable<String>
List of String text to be written where each item will replace the previous one based on the given index.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
index int
End index of the text that want to be written.
getter/setter pair
length int
Total length of data.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Current displayed text based on given index.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited