FileSizeRule constructor

FileSizeRule({
  1. required int maxSizeInBytes,
  2. String? message,
})

Creates a new instance of the FileSizeRule validation rule.

  • maxSizeInBytes The maximum size of the file in bytes (required).
  • message A custom validation message (optional) to be displayed when the validation fails.

Implementation

FileSizeRule({
  required this.maxSizeInBytes,
  String? message,
}) : super(message);