DataDrivenHexConfig<T> constructor

const DataDrivenHexConfig<T>({
  1. required List<T> data,
  2. required EnhancedFreeHexWidget hexBuilder(
    1. T data,
    2. FreeHexagon hexagon,
    3. int index
    ),
  3. HexLayoutPattern pattern = HexLayoutPattern.linear,
  4. Offset startPosition = const Offset(200, 200),
  5. double hexSize = 40.0,
  6. double hexSizeProvider(
    1. int index
    )?,
  7. double gap = 2.0,
  8. HexOrientation orientation = HexOrientation.flat,
  9. double bendFactor = 0.3,
  10. bool clockwise = true,
  11. String boundedDirection = 'right',
  12. Rect? bounds,
  13. int zigWidth = 3,
  14. int zigHeight = 2,
  15. int honeycombRings = 2,
})

Implementation

const DataDrivenHexConfig({
  required this.data,
  required this.hexBuilder,
  this.pattern = HexLayoutPattern.linear,
  this.startPosition = const Offset(200, 200),
  this.hexSize = 40.0,
  this.hexSizeProvider,
  this.gap = 2.0,
  this.orientation = HexOrientation.flat,
  this.bendFactor = 0.3,
  this.clockwise = true,
  this.boundedDirection = 'right',
  this.bounds,
  this.zigWidth = 3,
  this.zigHeight = 2,
  this.honeycombRings = 2,
});