FFAppBar constructor

FFAppBar({
  1. @Deprecated('This field is deprecated.') FFText? title,
  2. bool? legacyDefaultBackButton,
  3. @Deprecated('This field is deprecated.') Int64? legacyLegacyBackgroundColor,
  4. @Deprecated('This field is deprecated.') FFIcon? legacyLeadingIcon,
  5. @Deprecated('This field is deprecated.') FFIcon? legacyTrailingIcon,
  6. @Deprecated('This field is deprecated.') double? legacyLeadingIconPadding,
  7. @Deprecated('This field is deprecated.') double? legacyTrailingIconPadding,
  8. @Deprecated('This field is deprecated.') bool? legacyShow,
  9. FFColor? legacyBackgroundColor,
  10. double? legacyElevation,
  11. bool? legacyCenterTitle,
  12. FFColor? legacyBackButtonColor,
  13. FFDim? height,
  14. FFAppBar_TemplateType? templateType,
  15. FFDim? toolbarHeight,
  16. FFDim? bottomHeight,
  17. bool? isSliver,
  18. FFDim? expandedHeight,
  19. FFDim? collapsedHeight,
  20. bool? legacyPinned,
  21. bool? floating,
  22. FFPadding? titlePadding,
  23. bool? titleInFlexibleSpaceBar,
  24. bool? legacySnap,
  25. FFBooleanValue? defaultBackButtonValue,
  26. FFColorValue? backButtonColorValue,
  27. FFColorValue? backgroundColorValue,
  28. FFDoubleValue? elevationValue,
  29. FFBooleanValue? centerTitleValue,
  30. FFBooleanValue? pinnedValue,
  31. FFBooleanValue? snapValue,
})

Implementation

factory FFAppBar({
  @$core.Deprecated('This field is deprecated.') FFText? title,
  $core.bool? legacyDefaultBackButton,
  @$core.Deprecated('This field is deprecated.')
  $fixnum.Int64? legacyLegacyBackgroundColor,
  @$core.Deprecated('This field is deprecated.') FFIcon? legacyLeadingIcon,
  @$core.Deprecated('This field is deprecated.') FFIcon? legacyTrailingIcon,
  @$core.Deprecated('This field is deprecated.')
  $core.double? legacyLeadingIconPadding,
  @$core.Deprecated('This field is deprecated.')
  $core.double? legacyTrailingIconPadding,
  @$core.Deprecated('This field is deprecated.') $core.bool? legacyShow,
  FFColor? legacyBackgroundColor,
  $core.double? legacyElevation,
  $core.bool? legacyCenterTitle,
  FFColor? legacyBackButtonColor,
  FFDim? height,
  FFAppBar_TemplateType? templateType,
  FFDim? toolbarHeight,
  FFDim? bottomHeight,
  $core.bool? isSliver,
  FFDim? expandedHeight,
  FFDim? collapsedHeight,
  $core.bool? legacyPinned,
  $core.bool? floating,
  FFPadding? titlePadding,
  $core.bool? titleInFlexibleSpaceBar,
  $core.bool? legacySnap,
  FFBooleanValue? defaultBackButtonValue,
  FFColorValue? backButtonColorValue,
  FFColorValue? backgroundColorValue,
  FFDoubleValue? elevationValue,
  FFBooleanValue? centerTitleValue,
  FFBooleanValue? pinnedValue,
  FFBooleanValue? snapValue,
}) {
  final result = create();
  if (title != null) result.title = title;
  if (legacyDefaultBackButton != null)
    result.legacyDefaultBackButton = legacyDefaultBackButton;
  if (legacyLegacyBackgroundColor != null)
    result.legacyLegacyBackgroundColor = legacyLegacyBackgroundColor;
  if (legacyLeadingIcon != null) result.legacyLeadingIcon = legacyLeadingIcon;
  if (legacyTrailingIcon != null)
    result.legacyTrailingIcon = legacyTrailingIcon;
  if (legacyLeadingIconPadding != null)
    result.legacyLeadingIconPadding = legacyLeadingIconPadding;
  if (legacyTrailingIconPadding != null)
    result.legacyTrailingIconPadding = legacyTrailingIconPadding;
  if (legacyShow != null) result.legacyShow = legacyShow;
  if (legacyBackgroundColor != null)
    result.legacyBackgroundColor = legacyBackgroundColor;
  if (legacyElevation != null) result.legacyElevation = legacyElevation;
  if (legacyCenterTitle != null) result.legacyCenterTitle = legacyCenterTitle;
  if (legacyBackButtonColor != null)
    result.legacyBackButtonColor = legacyBackButtonColor;
  if (height != null) result.height = height;
  if (templateType != null) result.templateType = templateType;
  if (toolbarHeight != null) result.toolbarHeight = toolbarHeight;
  if (bottomHeight != null) result.bottomHeight = bottomHeight;
  if (isSliver != null) result.isSliver = isSliver;
  if (expandedHeight != null) result.expandedHeight = expandedHeight;
  if (collapsedHeight != null) result.collapsedHeight = collapsedHeight;
  if (legacyPinned != null) result.legacyPinned = legacyPinned;
  if (floating != null) result.floating = floating;
  if (titlePadding != null) result.titlePadding = titlePadding;
  if (titleInFlexibleSpaceBar != null)
    result.titleInFlexibleSpaceBar = titleInFlexibleSpaceBar;
  if (legacySnap != null) result.legacySnap = legacySnap;
  if (defaultBackButtonValue != null)
    result.defaultBackButtonValue = defaultBackButtonValue;
  if (backButtonColorValue != null)
    result.backButtonColorValue = backButtonColorValue;
  if (backgroundColorValue != null)
    result.backgroundColorValue = backgroundColorValue;
  if (elevationValue != null) result.elevationValue = elevationValue;
  if (centerTitleValue != null) result.centerTitleValue = centerTitleValue;
  if (pinnedValue != null) result.pinnedValue = pinnedValue;
  if (snapValue != null) result.snapValue = snapValue;
  return result;
}