addDefaultInteractions method

  1. @override
void addDefaultInteractions(
  1. List<ChartBehavior> behaviors
)
override

Create the list of default interaction behaviors.

Subclasses can override this method to customize the default interactions that are added to the chart.

behaviors The list of ChartBehavior to add the default interactions to.

Implementation

@override
void addDefaultInteractions(List<ChartBehavior> behaviors) {
  super.addDefaultInteractions(behaviors);

  behaviors.add(LinePointHighlighter<num>());
}