copyWith method

RdfGraphEncoderOptions copyWith({
  1. Map<String, String>? customPrefixes,
  2. 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:

Implementation

RdfGraphEncoderOptions copyWith({
  Map<String, String>? customPrefixes,
  IriRelativizationOptions? iriRelativization,
}) =>
    RdfGraphEncoderOptions(
      customPrefixes: customPrefixes ?? this.customPrefixes,
      iriRelativization: iriRelativization ?? this.iriRelativization,
    );