LazySingleValuePickerDialog<T> constructor
LazySingleValuePickerDialog<T> ({
- String? title,
- Widget? titleWidget,
- TextStyle? titleStyle,
- Color? titleBackgroundColor,
- required Future<
List< asyncItems(),T> ?> - required Widget itemBuilder(
- BuildContext context,
- T value,
- int index
- DialogButton? dialogButton,
- bool barrierDismissible = true,
- bool showCloseIcon = false,
- double elevation = 10.0,
- double? dialogWidth,
- double? dialogHeight,
- double titleHeight = 60.0,
- double dialogBorderRadius = 4.0,
- String? loadingMessage,
- LoadingDialog? loadingDialog,
Creates a LazySingleValuePickerDialog.
If titleWidget is provided, title, titleBackgroundColor, showCloseIcon,
and titleStyle should not be provided.
Should not provide both loadingMessage and loadingDialog.
Implementation
LazySingleValuePickerDialog({
this.title,
this.titleWidget,
this.titleStyle,
this.titleBackgroundColor,
required this.asyncItems,
required this.itemBuilder,
this.dialogButton,
this.barrierDismissible = true,
this.showCloseIcon = false,
this.elevation = 10.0,
this.dialogWidth,
this.dialogHeight,
this.titleHeight = 60.0,
this.dialogBorderRadius = 4.0,
this.loadingMessage,
this.loadingDialog,
}) : assert(
(titleWidget == null ||
(title == null &&
titleBackgroundColor == null &&
!showCloseIcon &&
titleStyle == null)),
"if titleWidget is provided, then title, titleBackgroundColor, showCloseIcon, titleStyle should not be provided",
),
assert(
(loadingMessage == null || loadingDialog == null),
"Should not provide both loadingMessage and loadingDialog",
);