withOptions method
- RdfGraphDecoderOptions options
override
Creates a new decoder with the specified options
This method returns a new instance of the decoder configured with the provided options. The original decoder instance remains unchanged.
Parameters:
options
Configuration options to customize the decoder's behavior.
Returns:
- A new RdfGraphDecoder instance with the specified options applied.
This pattern allows for immutable configuration of decoders and enables method chaining for readable configuration code.
Implementation
@override
RdfGraphDecoder withOptions(RdfGraphDecoderOptions options) {
return JsonLdDecoder(options: JsonLdDecoderOptions.from(options));
}