TextBoxConfig class

A set of configurations for the TextBoxComponent itself, as opposed to the TextRenderer, which contains the configuration for how to render the text only (font size, color, family, etc).

Constructors

TextBoxConfig({double maxWidth = 200.0, EdgeInsets margins = const EdgeInsets.all(8.0), double timePerChar = 0.0, double dismissDelay = 0.0, bool growingBox = false})

Properties

dismissDelay double
Defaults to 0. If not zero, this component will disappear after this many seconds after being fully typed out.
final
growingBox bool
Only relevant if timePerChar is set. If true, the box will start with the size to fit the first character and grow as more lines are typed. If false, the box will start with the full necessary size from the beginning (both width and height).
final
hashCode int
The hash code for this object.
no setterinherited
margins EdgeInsets
Margins of the text box with respect to the PositionComponent.size.
final
maxWidth double
Max width this paragraph can take. Lines will be broken trying to respect word boundaries in as many lines as necessary.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timePerChar double
Defaults to 0. If not zero, the characters will appear one-by-one giving a typing effect to the text box, and this will be the delay in seconds between each character.
final

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