withDescription method

  1. @override
MapSpec withDescription(
  1. String description
)
override

Creates a copy of this spec with the given description.

Implementation

@override
MapSpec withDescription(String description) => MapSpec(
      keyType: keyType,
      valueType: valueType,
      description: description,
      nullable: nullable,
      examples: examples,
      isDeprecated: isDeprecated,
    );