DataDrivenHexConfig<T> constructor
const
DataDrivenHexConfig<T> ({
- required List<
T> data, - required EnhancedFreeHexWidget hexBuilder(
- T data,
- FreeHexagon hexagon,
- int index
- HexLayoutPattern pattern = HexLayoutPattern.linear,
- Offset startPosition = const Offset(200, 200),
- double hexSize = 40.0,
- double hexSizeProvider(
- int index
- double gap = 2.0,
- HexOrientation orientation = HexOrientation.flat,
- double bendFactor = 0.3,
- bool clockwise = true,
- String boundedDirection = 'right',
- Rect? bounds,
- int zigWidth = 3,
- int zigHeight = 2,
- 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,
});