LevelPathMap constructor
LevelPathMap({})
Implementation
LevelPathMap({
super.key,
required this.nodes,
this.onLevelTap,
this.bottomUp = true,
this.rowHeight = 96,
this.width = 320,
}) {
if (nodes.isEmpty) {
throw ArgumentError.value(nodes, 'nodes', 'must not be empty');
}
if (!width.isFinite || width <= 0) {
throw ArgumentError.value(width, 'width', 'must be positive and finite');
}
if (!rowHeight.isFinite || rowHeight <= 0) {
throw ArgumentError.value(
rowHeight,
'rowHeight',
'must be positive and finite',
);
}
}