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: const TextStyle(
        fontSize: 13.5,
        fontWeight: FontWeight.w500,
      ),
    ).merge(widget.modalConfig.headerStyle),
  );
}