getMinPixels method
Get the min pixels, given the totalPixels
.
Implementation
int getMinPixels(int totalPixels) {
final _minPixel = this._minPixel;
final _minPercent = this._minPercent;
if (_minPixel != null) {
assert(_minPixel < totalPixels);
return _minPixel;
} else if (_minPercent != null) {
return (totalPixels * (_minPercent / 100)).round();
} else {
return 0;
}
}