copyWith method
RdfDatasetEncoderOptions
copyWith({
- Map<
String, String> ? customPrefixes, - IriRelativizationOptions? iriRelativization,
override
Creates a copy of this options instance with the specified overrides.
This method follows the copyWith pattern commonly used in Dart for creating modified copies of immutable objects while preserving the original instance.
Parameters:
customPrefixesNew custom prefixes to use. If null, the current value is retained.iriRelativizationNew relativization options. If null, the current value is retained.
Returns:
- A new RdfDatasetEncoderOptions instance with the specified modifications.
Implementation
RdfDatasetEncoderOptions copyWith({
Map<String, String>? customPrefixes,
IriRelativizationOptions? iriRelativization,
}) =>
RdfDatasetEncoderOptions(
customPrefixes: customPrefixes ?? this.customPrefixes,
iriRelativization: iriRelativization ?? this.iriRelativization,
);