CupertinoTabBar constructor

CupertinoTabBar({Key key, @required List<BottomNavigationBarItem> items, ValueChanged<int> onTap, int currentIndex: 0, Color backgroundColor: _kDefaultTabBarBackgroundColor, Color activeColor: CupertinoColors.activeBlue, 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

CupertinoTabBar({
  Key key,
  @required this.items,
  this.onTap,
  this.currentIndex = 0,
  this.backgroundColor = _kDefaultTabBarBackgroundColor,
  this.activeColor = CupertinoColors.activeBlue,
  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),
     assert(currentIndex != null),
     assert(0 <= currentIndex && currentIndex < items.length),
     assert(iconSize != null),
     super(key: key);