BaseCrop constructor

BaseCrop({
  1. Dimensions? dimensions,
  2. bool? relative,
  3. bool? regionRelative,
  4. Gravity? gravityValue,
  5. dynamic zoomValue,
  6. dynamic xValue,
  7. dynamic yValue,
})

Crop constructor Receives Dimensions, relative, relativeRegion, gravity, zoom, x, y

Implementation

BaseCrop(
    {super.dimensions,
    super.relative,
    super.regionRelative,
    Gravity? gravityValue,
    dynamic zoomValue,
    dynamic xValue,
    dynamic yValue}) {
  if (gravityValue != null) {
    gravity(gravityValue);
  }
  if (zoomValue != null) {
    zoom(zoomValue);
  }
  if (xValue != null) {
    x(xValue);
  }
  if (yValue != null) {
    y(yValue);
  }
}