withDescription method

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

Creates a copy of this spec with the given description.

Implementation

@override
EnumSpec withDescription(String description) => EnumSpec(
      name: name,
      values: values,
      description: description,
      nullable: nullable,
      examples: examples,
      isDeprecated: isDeprecated,
    );