fileSize static method
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);