refreshContent method

  1. @override
void refreshContent(
  1. Entry e,
  2. Highlight highlight
)
override

This method enables a specified custom IMarker to update it's content every time the IMarker is redrawn.

@param e The Entry the IMarker belongs to. This can also be any subclass of Entry, like BarEntry or CandleEntry, simply cast it at runtime. @param highlight The highlight object contains information about the highlighted value such as it's dataset-index, the selected range or stack-index (only stacked bar entries).

Implementation

@override
void refreshContent(Entry e, Highlight highlight) {
  _entry = e;
  highlight = highlight;
}