PercentInjector<D> constructor

PercentInjector<D>({
  1. PercentInjectorTotalType totalType = PercentInjectorTotalType.domain,
})

Constructs a PercentInjector.

totalType configures the type of data total to be calculated.

Implementation

PercentInjector({this.totalType = PercentInjectorTotalType.domain}) {
  // Set up chart draw cycle listeners.
  _lifecycleListener =
      LifecycleListener<D>(onPreprocess: _preProcess, onData: _onData);
}