SizeConstraint constructor
const
SizeConstraint({})
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 totrue
, all image sizes will be returned.
Implementation
const SizeConstraint({
this.minWidth = 0,
this.maxWidth = 100000,
this.minHeight = 0,
this.maxHeight = 100000,
this.ignoreSize = false,
});