withOptions method

  1. @override
RdfGraphDecoder withOptions(
  1. RdfGraphDecoderOptions options
)
override

Creates a new instance with the specified options

This method returns a new Turtle decoder configured with the provided options. The original decoder instance remains unchanged.

Parameters:

  • options Decoder options to customize decoding behavior. Will be properly cast to TurtleDecoderOptions if possible, else we will use the default options instead.

Returns:

  • A new TurtleDecoder instance with the specified options applied, while preserving the original namespace mappings.

Implementation

@override
RdfGraphDecoder withOptions(RdfGraphDecoderOptions options) => TurtleDecoder(
  options: TurtleDecoderOptions.from(options),
  namespaceMappings: _namespaceMappings,
);