S2ModalConfig constructor
const
S2ModalConfig({
- S2ModalType type = S2ModalType.fullPage,
- String? title,
- bool useHeader = true,
- bool useConfirm = false,
- Icon? confirmIcon,
- Widget? confirmLabel,
- Color? confirmColor,
- EdgeInsetsGeometry? confirmMargin,
- Brightness confirmBrightness = Brightness.light,
- bool useFilter = false,
- bool filterAuto = false,
- Duration filterDelay = const Duration(milliseconds: 300),
- String? filterHint,
- double maxHeightFactor = 0.6,
- bool enableDrag = true,
- bool barrierDismissible = true,
- Color? barrierColor,
- S2ModalStyle style = const S2ModalStyle(),
- S2ModalHeaderStyle headerStyle = const S2ModalHeaderStyle(),
Create modal configuration
Implementation
const S2ModalConfig({
this.type = S2ModalType.fullPage,
this.title,
this.useHeader = true,
this.useConfirm = false,
this.confirmIcon,
this.confirmLabel,
this.confirmColor,
this.confirmMargin,
this.confirmBrightness = Brightness.light,
this.useFilter = false,
this.filterAuto = false,
this.filterDelay = const Duration(milliseconds: 300),
this.filterHint,
this.maxHeightFactor = 0.6,
this.enableDrag = true,
this.barrierDismissible = true,
this.barrierColor,
this.style = const S2ModalStyle(),
this.headerStyle = const S2ModalHeaderStyle(),
}) : assert(maxHeightFactor > 0 && maxHeightFactor <= 1);