registerClassExtensionGenerator function

DummyBuilder registerClassExtensionGenerator (
  1. int order,
  2. ClassExtensionGenerator generator
)

Implementation

DummyBuilder registerClassExtensionGenerator(
    int order, ClassExtensionGenerator generator) {
  if (!_orderedGenerators.any((generator) => generator.order == order)) {
    _orderedGenerators.add(OrderedGenerator(order, generator));
    _orderedGenerators.sort((left, right) => left.order.compareTo(right.order));
  }
  return DummyBuilder();
}