TextUI<T> class

Base type for TextUI classes.

T is type that will be returned by present.

Implementers

Constructors

TextUI({Set<MenuModifiers> modifiers, Layouts layout = Layouts.VERTICAL})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
layout Layouts
read / write
lines List<String>
The Strings of text that the TextUI should display
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
present({String preface, String prepend}) → T
Returns a T containing the user's inputs for each line.
promptModifierAdjustments() String
Generate a string based on MenuModifiers.
toString() String
A string representation of this object.
inherited
toStringIterative({String prepend, bool numberBullets = true}) List<String>
Format a new List of Strings from lines.
usesModifier(MenuModifiers modifier) bool
Determines whether or not the UI uses modifier.

Operators

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

Constants

EXIT → const String
What the user should input when they wish to back out of a TextUI.
"q"