ValidatorHelpers extension

Extension methods for common validation patterns

on

Static Methods

arrayRules(String fieldName, String itemRules, {bool nullable = false, bool required = true, int? minItems, int? maxItems}) Map<String, String>

Available on InputValidator, provided by the ValidatorHelpers extension

Quick method to validate array of specific types
fileUploadRules({bool required = true, bool nullable = false, List<String> allowedMimes = const [], int? maxSizeKB, bool multiple = false}) Map<String, String>

Available on InputValidator, provided by the ValidatorHelpers extension

Quick method to validate file uploads