public CupertinoTabScaffold( Key key = null, CupertinoTabBar tabBar = null, IndexedWidgetBuilder tabBuilder = null, Color backgroundColor = null, bool resizeToAvoidBottomInset = true ) : base(key: key) { D.assert(tabBar != null); D.assert(tabBuilder != null); this.tabBar = tabBar; this.tabBuilder = tabBuilder; this.backgroundColor = backgroundColor; this.resizeToAvoidBottomInset = resizeToAvoidBottomInset; }
public CupertinoTabScaffold( Key key = null, CupertinoTabBar tabBar = null, IndexedWidgetBuilder tabBuilder = null, CupertinoTabController controller = null, Color backgroundColor = null, bool resizeToAvoidBottomInset = true ) : base(key: key) { D.assert(tabBar != null); D.assert(tabBuilder != null); D.assert( controller == null || controller.index < tabBar.items.Count, () => $"The CupertinoTabController's current index {controller.index} is " + $"out of bounds for the tab bar with {tabBar.items.Count} tabs" ); this.tabBar = tabBar; this.controller = controller; this.tabBuilder = tabBuilder; this.backgroundColor = backgroundColor; this.resizeToAvoidBottomInset = resizeToAvoidBottomInset; }