MiddleInputDialog constructor

MiddleInputDialog({
  1. String? title,
  2. String? message,
  3. String? hintText,
  4. TextInputType? keyboardType,
  5. int maxLength = 20,
  6. int? maxLines,
  7. int minLines = 1,
  8. FocusNode? inputFocusNode,
  9. TextEditingController? inputEditingController,
  10. List<TextInputFormatter>? inputFormatters,
  11. TextInputAction textInputAction = TextInputAction.newline,
  12. String? cancelText,
  13. String? confirmText,
  14. void onConfirm(
    1. String value
    )?,
  15. VoidCallback? onCancel,
  16. bool dismissOnActionsTap = true,
  17. bool barrierDismissible = true,
  18. bool autoFocus = false,
  19. DialogConfig? themeData,
})

Implementation

MiddleInputDialog(
    {this.title,
    this.message,
    this.hintText,
    this.keyboardType,
    this.maxLength = 20,
    this.maxLines,
    this.minLines = 1,
    this.inputFocusNode,
    this.inputEditingController,
    this.inputFormatters,
    this.textInputAction = TextInputAction.newline,
    this.cancelText,
    this.confirmText,
    this.onConfirm,
    this.onCancel,
    this.dismissOnActionsTap = true,
    this.barrierDismissible = true,
    this.autoFocus = false,
    this.themeData}) {
  themeData ??= DialogConfig();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .dialogConfig
      .merge(themeData);
}