CupertinoTabBar constructor

const CupertinoTabBar({Key key, @required List<BottomNavigationBarItem> items, ValueChanged<int> onTap, int currentIndex: 0, Color backgroundColor, Color activeColor, Color inactiveColor: CupertinoColors.inactiveGray, double iconSize: 30.0, Border border: const Border(top: BorderSide(color: _kDefaultTabBarBorderColor, width: 0.0, style: BorderStyle.solid)) })

Creates a tab bar in the iOS style.

Implementation

const CupertinoTabBar({
  Key key,
  @required this.items,
  this.onTap,
  this.currentIndex = 0,
  this.backgroundColor,
  this.activeColor,
  this.inactiveColor = CupertinoColors.inactiveGray,
  this.iconSize = 30.0,
  this.border = const Border(
    top: BorderSide(
      color: _kDefaultTabBarBorderColor,
      width: 0.0, // One physical pixel.
      style: BorderStyle.solid,
    ),
  ),
}) : assert(items != null),
     assert(
       items.length >= 2,
       "Tabs need at least 2 items to conform to Apple's HIG",
     ),
     assert(currentIndex != null),
     assert(0 <= currentIndex && currentIndex < items.length),
     assert(iconSize != null),
     assert(inactiveColor != null),
     super(key: key);