Skip to content

Commit 32b58de

Browse files
author
Tom Duffin
committed
small typo fixes and improvements for viewing via intellisense.
1 parent 89dc774 commit 32b58de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/utils/flutter_carousel_utils.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/// Converts an index of a set size to the corresponding index of a collection of another size
22
/// as if they were circular.
33
///
4-
/// Takes a [position] from collection Foo, a [base] from where Foo's index originated
5-
/// and the [length] of a second collection Baa, for which the correlating index is sought.
4+
/// Takes a [position] from collection `Foo`, a [base] from where `Foo`'s index originated
5+
/// and the [length] of a second collection `Bar`, for which the correlating index is sought.
66
///
7-
/// For example; We have a Carousel of 10000(simulating infinity) but only 6 images.
7+
/// For example; We have a Carousel of 10000 (simulating infinity) but only 6 images.
88
/// We need to repeat the images to give the illusion of a never ending stream.
9-
/// By calling _getRealIndex with position and base we get an offset.
9+
/// By calling `getRealIndex` with position and base we get an offset.
1010
/// This offset modulo our length, 6, will return a number between 0 and 5, which represent the image
1111
/// to be placed in the given position.
1212
int getRealIndex(int position, int base, int? length) {

0 commit comments

Comments
 (0)