initItems method
Implementation
void initItems(double heading, double width, double itemWidth) {
log("initItems: heading: $heading, width: $width, itemWidth: $itemWidth");
if (heading < 0) heading += 360;
this.heading = heading;
this.width = width;
this.itemWidth = itemWidth;
items =
List<String>.generate(itemCount, (index) => _getCompassLabel(index));
scrollOffset = centerOffset;
scrollController = ScrollController(initialScrollOffset: scrollOffset);
Future.delayed(const Duration(seconds: 1), () {
// scrollController.jumpTo(center);
});
}