ChartModel constructor

ChartModel(
  1. WidgetModel parent,
  2. String? id, {
  3. dynamic type,
  4. dynamic showlegend,
  5. dynamic horizontal,
  6. dynamic animated,
  7. dynamic selected,
})

Implementation

ChartModel(WidgetModel parent, String? id,
  {
    dynamic type,
    dynamic showlegend,
    dynamic horizontal,
    dynamic animated,
    dynamic selected,
  }) : super(parent, id) {
  this.selected         = selected;
  this.animated         = animated;
  this.horizontal       = horizontal;
  this.showlegend       = showlegend;
  this.type             = type?.trim()?.toLowerCase() ?? null;
  // instantiate busy observable
  busy = false;
}