RdfCodecRegistry constructor

RdfCodecRegistry([
  1. List<RdfGraphCodec> initialCodecs = const []
])

Creates a new codec registry

The registry starts empty, with no codecs registered. Codec implementations must be registered using the registerCodec method.

Implementation

RdfCodecRegistry([List<RdfGraphCodec> initialCodecs = const []])
    : _registry = BaseRdfCodecRegistry() {
  for (final codec in initialCodecs) {
    registerGraphCodec(codec);
  }
}