build method
BaseTreeMapRenderer<D>
build(
)
override
Implementation
@override
BaseTreeMapRenderer<D> build() {
switch (tileType) {
case TreeMapTileType.dice:
return DiceTreeMapRenderer<D>(
config: this, rendererId: customRendererId);
case TreeMapTileType.slice:
return SliceTreeMapRenderer<D>(
config: this, rendererId: customRendererId);
case TreeMapTileType.sliceDice:
return SliceDiceTreeMapRenderer<D>(
config: this, rendererId: customRendererId);
default:
return SquarifiedTreeMapRenderer<D>(
config: this, rendererId: customRendererId);
}
}