asNullable method

  1. @override
StringSpec asNullable()
override

Creates a copy of this spec with nullable set to true.

Implementation

@override
StringSpec asNullable() => StringSpec(
      format: format,
      pattern: pattern,
      minLength: minLength,
      maxLength: maxLength,
      defaultValue: defaultValue,
      description: description,
      nullable: true,
      examples: examples,
      isDeprecated: isDeprecated,
    );