ChatUIKitAppBar.model constructor

ChatUIKitAppBar.model(
  1. ChatUIKitAppBarModel model
)

Implementation

factory ChatUIKitAppBar.model(ChatUIKitAppBarModel model) {
  return ChatUIKitAppBar(
    title: model.title,
    centerWidget: model.centerWidget,
    titleTextStyle: model.titleTextStyle,
    subtitle: model.subtitle,
    subTitleTextStyle: model.subTitleTextStyle,
    leading: null,
    leadingActions: model.leadingActions,
    trailingActions: model.trailingActions,
    showBackButton: model.showBackButton,
    onBackButtonPressed: model.onBackButtonPressed,
    centerTitle: model.centerTitle,
    systemOverlayStyle: model.systemOverlayStyle,
    backgroundColor: model.backgroundColor,
    bottomLine: model.bottomLine ?? false,
    bottomLineColor: model.bottomLineColor,
  );
}