Info class

This class provides shortcuts to easily display some dialogs

Constructors

Info()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

showGo(String htmlInfoText) → void
Shows a modal InfoDialog with centered htmlInfoText. Like show, but "unawaited", i.e. doesn't return anything, and does not wait until the red cross is pressed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

confirm(String htmlInfoText, List<String> buttonLabels) → Future<UserInput>
Shows a modal ConfirmDialog. See ConfirmDialog for a description of the arguments. While ConfirmDialog needs a close callback, this async method returns the user input (which consists of the pressed button since other user input can't be entered in a ConfirmDialog.
get(String buttontype, String htmlTitleText, List<String> textLabels, List<List<String>> comboInfo, List<String> defaultInputTexts, List<int> widths, List<String> isChecked, bool alternateRowColor, List<String> buttonLabels) → Future<UserInput>
Displays a dialog with a htmlTitleText and with several rows of optional check buttons, radio buttons, text entry fields, combo boxes. The name "get" indicates that UserInput into the above GUI elements is returned. buttontype - one of DiaAttr.RADIO, DiaAttr.CHECKBOX, null(=CHECKBOX)] See isChecked argument for further details. [...]
get2D(String buttontype, String htmlTitleText, List<String> textLabels, Map<int, List<List<String>>> comboInfoND, Map<int, List<String>> defaultInputTextsND, List<int> widths, List<String> isChecked, bool alternateRowColor, List<String> buttonLabels) → Future<UserInput>
This method is similar to get, with the following difference: it displays not a single, but two columns with texts, text entry fields etc. So, the meaning of the arguments is the same as for get, except for the following which reflect the 2D features: comboInfoND - acts like comboInfo in get, but values for the two columns must be given. Use the Map keys InputDialog.COL1 and InputDialog.COL2 for this. defaultInputTextsND = like defaultInputTexts inget, but values for the two columns must be given. Use the Map keys InputDialog.COL1 and InputDialog.COL2 for this. Please refer to the example showAdvancedInputDialog2D in the file examples.dart of this package.
show(String htmlInfoText) → Future<UserInput>
Shows a modal InfoDialog with centered htmlInfoText. While InfoDialog needs a close callback, this async method returns the user input (button code DiaAttr.DIA_ACT_ABORT when the red cross is pressed).