FileSizeRule.megabyte constructor

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

Implementation

FileSizeRule.megabyte({
  required int maxSizeInMegabytes,
  String? message,
})  : maxSizeInBytes = maxSizeInMegabytes * 1024 * 1024,
      super(message);