Skip to content

Commit

Permalink
Fix PR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Aug 20, 2024
1 parent 171838e commit 3ca789f
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ class FBottomNavigationBar extends StatelessWidget {
final ValueChanged<int>? onChange;

/// The index.
///
/// ## Contract
/// Throws [AssertionError] if [index] is not null and is negative.
final int? index;
final int index;

/// The children.
final List<Widget> children;
Expand All @@ -38,9 +35,9 @@ class FBottomNavigationBar extends StatelessWidget {
required this.children,
this.style,
this.onChange,
this.index,
this.index = -1,
super.key,
}) : assert(index == null || 0 <= index, 'index must be null or non-negative.');
});

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit 3ca789f

Please sign in to comment.