FFAppBar constructor
FFAppBar({
- @Deprecated('This field is deprecated.') FFText? title,
- bool? legacyDefaultBackButton,
- @Deprecated('This field is deprecated.') Int64? legacyLegacyBackgroundColor,
- @Deprecated('This field is deprecated.') FFIcon? legacyLeadingIcon,
- @Deprecated('This field is deprecated.') FFIcon? legacyTrailingIcon,
- @Deprecated('This field is deprecated.') double? legacyLeadingIconPadding,
- @Deprecated('This field is deprecated.') double? legacyTrailingIconPadding,
- @Deprecated('This field is deprecated.') bool? legacyShow,
- FFColor? legacyBackgroundColor,
- double? legacyElevation,
- bool? legacyCenterTitle,
- FFColor? legacyBackButtonColor,
- FFDim? height,
- FFAppBar_TemplateType? templateType,
- FFDim? toolbarHeight,
- FFDim? bottomHeight,
- bool? isSliver,
- FFDim? expandedHeight,
- FFDim? collapsedHeight,
- bool? legacyPinned,
- bool? floating,
- FFPadding? titlePadding,
- bool? titleInFlexibleSpaceBar,
- bool? legacySnap,
- FFBooleanValue? defaultBackButtonValue,
- FFColorValue? backButtonColorValue,
- FFColorValue? backgroundColorValue,
- FFDoubleValue? elevationValue,
- FFBooleanValue? centerTitleValue,
- FFBooleanValue? pinnedValue,
- 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;
}