FFNavBarItem constructor

FFNavBarItem({
  1. FFIcon? navIcon,
  2. FFIcon? navActiveIcon,
  3. @Deprecated('This field is deprecated.') String? legacyLabel,
  4. bool? show,
  5. bool? differentActiveIcon,
  6. FFGoogleNavBarItem? googleNavBarItem,
  7. FFFloatingNavBarItem? floatingNavBarItem,
  8. FFText? label,
  9. bool? alwaysShowNavBar,
})

Implementation

factory FFNavBarItem({
  FFIcon? navIcon,
  FFIcon? navActiveIcon,
  @$core.Deprecated('This field is deprecated.') $core.String? legacyLabel,
  $core.bool? show,
  $core.bool? differentActiveIcon,
  FFGoogleNavBarItem? googleNavBarItem,
  FFFloatingNavBarItem? floatingNavBarItem,
  FFText? label,
  $core.bool? alwaysShowNavBar,
}) {
  final result = create();
  if (navIcon != null) result.navIcon = navIcon;
  if (navActiveIcon != null) result.navActiveIcon = navActiveIcon;
  if (legacyLabel != null) result.legacyLabel = legacyLabel;
  if (show != null) result.show = show;
  if (differentActiveIcon != null)
    result.differentActiveIcon = differentActiveIcon;
  if (googleNavBarItem != null) result.googleNavBarItem = googleNavBarItem;
  if (floatingNavBarItem != null)
    result.floatingNavBarItem = floatingNavBarItem;
  if (label != null) result.label = label;
  if (alwaysShowNavBar != null) result.alwaysShowNavBar = alwaysShowNavBar;
  return result;
}