name property

String get name

Gets the corresponding string event name used in ECharts JavaScript API.

Use this when subscribing or unsubscribing to events from your Dart code.

Implementation

String get name {
  switch (this) {
    case EChartsEvent.click:
      return 'click';
    case EChartsEvent.dblclick:
      return 'dblclick';
    case EChartsEvent.mousedown:
      return 'mousedown';
    case EChartsEvent.mousemove:
      return 'mousemove';
    case EChartsEvent.mouseup:
      return 'mouseup';
    case EChartsEvent.mouseover:
      return 'mouseover';
    case EChartsEvent.mouseout:
      return 'mouseout';
    case EChartsEvent.globalout:
      return 'globalout';
    case EChartsEvent.contextmenu:
      return 'contextmenu';
    case EChartsEvent.legendselectchanged:
      return 'legendselectchanged';
    case EChartsEvent.legendselected:
      return 'legendselected';
    case EChartsEvent.legendunselected:
      return 'legendunselected';
    case EChartsEvent.datazoom:
      return 'datazoom';
    case EChartsEvent.timelinechanged:
      return 'timelinechanged';
    case EChartsEvent.timelineplaychanged:
      return 'timelineplaychanged';
    case EChartsEvent.restore:
      return 'restore';
    case EChartsEvent.dataviewchanged:
      return 'dataviewchanged';
    case EChartsEvent.magictypechanged:
      return 'magictypechanged';
    case EChartsEvent.geoselectchanged:
      return 'geoselectchanged';
    case EChartsEvent.geoselected:
      return 'geoselected';
    case EChartsEvent.geoUnselected:
      return 'geoUnselected';
    case EChartsEvent.pieselectchanged:
      return 'pieselectchanged';
    case EChartsEvent.piesselected:
      return 'piesselected';
    case EChartsEvent.pieUnselected:
      return 'pieUnselected';
    case EChartsEvent.mapselectchanged:
      return 'mapselectchanged';
    case EChartsEvent.mapselected:
      return 'mapselected';
    case EChartsEvent.mapUnselected:
      return 'mapUnselected';
    case EChartsEvent.axisareaselected:
      return 'axisareaselected';
  }
}