fileSize static method

ValidationRule<File?> fileSize(
  1. int maxSizeInBytes, {
  2. String? message,
})

Creates a FileSizeRule validation rule.

This rule validates that the input file size is within a specified limit. It can include a custom validation message.

Implementation

static ValidationRule<File?> fileSize(int maxSizeInBytes,
        {String? message}) =>
    FileSizeRule(maxSizeInBytes: maxSizeInBytes, message: message);