register static method

void register(
  1. ChartRegistration reg
)

Register a single chart type.

Idempotent — re-registering the same type is a no-op.

Implementation

static void register(ChartRegistration reg) {
  if (identical(_byType[reg.type], reg)) return;

  _byType[reg.type] = reg;
  _rebuildStringIndexes();
  _bumpGeneration();
}