registerDescriptors<U> method

  1. @protected
void registerDescriptors<U>(
  1. Iterable<TypeDescriptor<U>> descriptors, {
  2. bool checkUnique = false,
})
inherited

Implementation

@protected
void registerDescriptors<U>(Iterable<TypeDescriptor<U>> descriptors,
    {bool checkUnique = false}) {
  for (var element in descriptors) {
    if (checkUnique && vyuh.content.isRegistered<U>(element)) {
      return;
    }

    vyuh.content.register<U>(element);
  }
}