BartBottomBar.adaptive constructor

BartBottomBar.adaptive({
  1. Material3BottomBarTheme? materialBottomBarTheme,
  2. CupertinoBottomBarTheme? cupertinoBottomBarTheme,
  3. bool enableHapticFeedback = true,
  4. int index = 0,
})

Implementation

factory BartBottomBar.adaptive({
  Material3BottomBarTheme? materialBottomBarTheme,
  CupertinoBottomBarTheme? cupertinoBottomBarTheme,
  bool enableHapticFeedback = true,
  int index = 0,
}) =>
    BartBottomBar._(
      bottomBarTheme: Platform.isIOS
          ? cupertinoBottomBarTheme ?? CupertinoBottomBarTheme()
          : materialBottomBarTheme ?? Material3BottomBarTheme(),
      enableHapticFeedback: enableHapticFeedback,
      theme: Platform.isIOS ? Theme.cupertino : Theme.material3,
      currentIndex: index,
    );