Skip to content

Commit b87dfeb

Browse files
committed
Update ArnaPageIndicator
1 parent 0f8e8c7 commit b87dfeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/src/base/page_indicator.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ class ArnaPageIndicator extends StatelessWidget {
55
/// Creates a page indicator.
66
const ArnaPageIndicator({
77
super.key,
8-
this.count = 1,
8+
required this.count,
99
this.position = 0,
1010
this.accentColor,
11-
});
11+
}) : assert(count > 0),
12+
assert(position >= 0);
1213

1314
/// The number of indicators.
1415
final int count;

0 commit comments

Comments
 (0)