fromToolbarView method

ToolbarViewController fromToolbarView(
  1. ToolbarView view
)

Implementation

ToolbarViewController fromToolbarView(ToolbarView view) {
  super.fromView(view);
  actions = view.actions;
  elevationColor = view.elevationColor;
  iconTheme = view.iconTheme;

  ///LEADING
  leading = view.leading;
  leadingAutoImply = view.leadingAutoImply ?? true;
  leadingIcon = view.leadingIcon;
  leadingIconColor = view.leadingIconColor ?? Colors.black;
  leadingIconSize = view.leadingIconSize ?? 24;
  leadingSize = view.leadingSize;
  leadingVisible = view.leadingVisible ?? true;
  onLeadingClick = view.onLeadingClick;

  ///STATUS BAR
  statusBarColor = view.statusBarColor;
  statusBarBrightness = view.statusBarBrightness ?? Brightness.dark;
  statusBarIconBrightness = view.statusBarIconBrightness;

  ///TITLE
  title = view.title;
  titleCenter = view.titleCenter;
  titleColor = view.titleColor ?? Colors.black;
  titleCustom = view.titleCustom;
  titleSize = view.titleSize ?? 16;
  titleSpacing = view.titleSpacing;
  titleStyle = view.titleStyle;

  return this;
}