PersistentBottomNavBarItem constructor

PersistentBottomNavBarItem({
  1. required Widget icon,
  2. Widget? inactiveIcon,
  3. String? title,
  4. double contentPadding = 5.0,
  5. Color activeColorPrimary = CupertinoColors.activeBlue,
  6. Color? activeColorSecondary,
  7. Color? inactiveColorPrimary,
  8. Color inactiveColorSecondary = CupertinoColors.systemGrey,
  9. double opacity = 1.0,
  10. ImageFilter? filter,
  11. TextStyle? textStyle,
  12. double iconSize = 26.0,
  13. Function? onSelectedTabPressWhenNoScreensPushed,
  14. RouteAndNavigatorSettings routeAndNavigatorSettings = const RouteAndNavigatorSettings(),
  15. dynamic onPressed(
    1. BuildContext?
    )?,
})

Implementation

PersistentBottomNavBarItem(
    {required this.icon,
    this.inactiveIcon,
    this.title,
    this.contentPadding = 5.0,
    this.activeColorPrimary = CupertinoColors.activeBlue,
    this.activeColorSecondary,
    this.inactiveColorPrimary,
    this.inactiveColorSecondary = CupertinoColors.systemGrey,
    this.opacity = 1.0,
    this.filter,
    this.textStyle,
    this.iconSize = 26.0,
    this.onSelectedTabPressWhenNoScreensPushed,
    this.routeAndNavigatorSettings = const RouteAndNavigatorSettings(),
    this.onPressed}) {
  assert(opacity >= 0 && opacity <= 1.0);
}