BartBottomBar.fromFactory constructor Null safety

BartBottomBar.fromFactory(
  1. {required BartBottomBarFactory bottomBarFactory,
  2. double? elevation,
  3. Color? bgColor,
  4. Color? selectedItemColor,
  5. Color? unselectedItemColor,
  6. BottomNavigationBarType? type,
  7. IconThemeData? iconThemeData,
  8. double selectedFontSize = 14.0,
  9. double unselectedFontSize = 12.0,
  10. double iconSize = 24,
  11. int index = 0}
)

Implementation

factory BartBottomBar.fromFactory(
        {required BartBottomBarFactory bottomBarFactory,
        double? elevation,
        Color? bgColor,
        Color? selectedItemColor,
        Color? unselectedItemColor,
        BottomNavigationBarType? type,
        IconThemeData? iconThemeData,
        double selectedFontSize = 14.0,
        double unselectedFontSize = 12.0,
        double iconSize = 24,
        int index = 0}) =>
    BartBottomBar._(
      bottomBarFactory: bottomBarFactory,
      elevation: elevation,
      bgColor: bgColor,
      selectedItemColor: selectedItemColor,
      unselectedItemColor: unselectedItemColor,
      type: type,
      iconThemeData: iconThemeData,
      selectedFontSize: selectedFontSize,
      unselectedFontSize: unselectedFontSize,
      iconSize: iconSize,
      currentIndex: ValueNotifier(index),
    );