FFDefaultAppBar constructor

FFDefaultAppBar({
  1. FFAppBar_TemplateType? templateType,
  2. FFColor? backgroundColor,
  3. FFDim? height,
  4. double? elevation,
  5. FFIcon? defaultIcon,
  6. FFText? textStyle,
  7. bool? addOnNewPages,
  8. FFEditMetadata? editMetadata,
  9. FFResponsiveVisibility? responsiveVisibility,
  10. @Deprecated('This field is deprecated.') bool? legacyHasMigratedOld,
  11. @Deprecated('This field is deprecated.') bool? legacyHasMigrated,
})

Implementation

factory FFDefaultAppBar({
  FFAppBar_TemplateType? templateType,
  FFColor? backgroundColor,
  FFDim? height,
  $core.double? elevation,
  FFIcon? defaultIcon,
  FFText? textStyle,
  $core.bool? addOnNewPages,
  FFEditMetadata? editMetadata,
  FFResponsiveVisibility? responsiveVisibility,
  @$core.Deprecated('This field is deprecated.')
  $core.bool? legacyHasMigratedOld,
  @$core.Deprecated('This field is deprecated.')
  $core.bool? legacyHasMigrated,
}) {
  final result = create();
  if (templateType != null) result.templateType = templateType;
  if (backgroundColor != null) result.backgroundColor = backgroundColor;
  if (height != null) result.height = height;
  if (elevation != null) result.elevation = elevation;
  if (defaultIcon != null) result.defaultIcon = defaultIcon;
  if (textStyle != null) result.textStyle = textStyle;
  if (addOnNewPages != null) result.addOnNewPages = addOnNewPages;
  if (editMetadata != null) result.editMetadata = editMetadata;
  if (responsiveVisibility != null)
    result.responsiveVisibility = responsiveVisibility;
  if (legacyHasMigratedOld != null)
    result.legacyHasMigratedOld = legacyHasMigratedOld;
  if (legacyHasMigrated != null) result.legacyHasMigrated = legacyHasMigrated;
  return result;
}