modalConfig property
S2ModalConfig
modalConfig
Returns the modal config
Implementation
S2ModalConfig get modalConfig {
return widget.modalConfig?.copyWith(
headerStyle: S2ModalHeaderStyle(
backgroundColor:
widget.modalConfig?.isFullPage != true ? theme.cardColor : null,
textStyle: widget.modalConfig?.isFullPage != true
? theme.textTheme.headline6
: theme.primaryTextTheme.headline6,
iconTheme:
widget.modalConfig?.isFullPage != true ? theme.iconTheme : null,
errorStyle: TextStyle(
fontSize: 13.5,
fontWeight: FontWeight.w500,
color: widget.modalConfig?.isFullPage == true
? (theme.primaryColorBrightness == Brightness.dark
? Colors.white
: theme.errorColor)
: theme.errorColor,
),
).merge(widget.modalConfig?.headerStyle),
);
}