show2D method

Future<UserInput> show2D (String buttontype, String htmlTitleText, List<String> inputTextLabelInfo, Map<int, List<List<String>>> comboInfoND, Map<int, List<String>> defaultInputTextsND, List<int> sizes, List<String> isChecked, bool alternateRowColor, List<String> buttonLabels)

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.

Implementation

static Future<UserInput> show2D(
    String buttontype,
    String htmlTitleText,
    List<String> inputTextLabelInfo,
    Map<int, List<List<String>>> comboInfoND,
    Map<int, List<String>> defaultInputTextsND,
    List<int> sizes,
    List<String> isChecked,
    bool alternateRowColor,
    List<String> buttonLabels) async {
  Completer<UserInput> cpl = Completer();
  void closeCallback(UserInput results) {
    cpl.complete(results);
  }

  InputDialog.twoD(
      buttontype,
      htmlTitleText,
      inputTextLabelInfo,
      comboInfoND,
      defaultInputTextsND,
      sizes,
      isChecked,
      closeCallback,
      alternateRowColor,
      buttonLabels);

  return cpl.future;
}