initDecoration method
Init decoration is first thing called on decorations, it will pass current ChartState so decoration can easily calculate needed stuff for their layout.
Implementation
@override
void initDecoration(ChartState state) {
super.initDecoration(state);
assert(state.data.stackSize > listIndex,
'List index is not in the list!\nCheck the `listIndex` you are passing.');
}