copyWith method
- Map<
String, String> ? customPrefixes, - IriRelativizationOptions? iriRelativization,
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:
customPrefixes
New custom prefixes to use. If null, the current value is retained.iriRelativization
New relativization options. If null, the current value is retained.
Returns:
- A new RdfGraphEncoderOptions instance with the specified modifications.
Implementation
RdfGraphEncoderOptions copyWith({
Map<String, String>? customPrefixes,
IriRelativizationOptions? iriRelativization,
}) =>
RdfGraphEncoderOptions(
customPrefixes: customPrefixes ?? this.customPrefixes,
iriRelativization: iriRelativization ?? this.iriRelativization,
);