IsString constructor

IsString({
  1. bool isOptional = false,
  2. required dynamic value,
  3. String? propertyName,
  4. String? contains,
  5. String? notContains,
  6. bool ignoreCase = false,
  7. bool isEmail = false,
  8. bool isUrl = false,
  9. bool isAlpha = false,
  10. bool isAlphanumeric = false,
  11. bool isBase64 = false,
  12. bool isCreditCard = false,
  13. bool isDate = false,
  14. bool isJSON = false,
  15. bool isLowercase = false,
  16. bool isUUID = false,
  17. bool isIP = false,
  18. bool isUppercase = false,
  19. List<String> isIn = const [],
  20. int? length,
  21. int? maxLen,
  22. int? minLen,
})

Implementation

IsString(
    {this.isOptional = false,
    required this.value,
    this.propertyName,
    this.contains,
    this.notContains,
    this.ignoreCase = false,
    this.isEmail = false,
    this.isUrl = false,
    this.isAlpha = false,
    this.isAlphanumeric = false,
    this.isBase64 = false,
    this.isCreditCard = false,
    this.isDate = false,
    this.isJSON = false,
    this.isLowercase = false,
    this.isUUID = false,
    this.isIP = false,
    this.isUppercase = false,
    this.isIn = const [],
    this.length,
    this.maxLen,
    this.minLen});