Compass constructor

Compass({
  1. Key? key,
  2. double width = 300,
  3. double itemWidth = 60,
  4. required CompassController controller,
  5. double initialHeading = 0,
})

Implementation

Compass({
  super.key,
  this.width = 300,
  this.itemWidth = 60,
  required this.controller,
  this.initialHeading = 0,
}) {
  controller.itemWidth = itemWidth;
  controller.initItems(initialHeading, width, itemWidth);
}