SizeConstraint constructor

const SizeConstraint({
  1. int minWidth = 0,
  2. int maxWidth = 100000,
  3. int minHeight = 0,
  4. int maxHeight = 100000,
  5. bool ignoreSize = false,
})

Creates a new instance of the SizeConstraint class.

  • minWidth: An optional parameter, defaults to 0. Specifies the minimum width for queried images.
  • maxWidth: An optional parameter, defaults to 100000. Specifies the maximum width for queried images.
  • minHeight: An optional parameter, defaults to 0. Specifies the minimum height for queried images.
  • maxHeight: An optional parameter, defaults to 100000. Specifies the maximum height for queried images.
  • ignoreSize: An optional parameter, defaults to false. If set to true, all image sizes will be returned.

Implementation

const SizeConstraint({
  this.minWidth = 0,
  this.maxWidth = 100000,
  this.minHeight = 0,
  this.maxHeight = 100000,
  this.ignoreSize = false,
});