saturation method

void saturation(
  1. int saturation
)

The saturation parameter allows you to increase or decrease the intensity of the colors in a given image. To specify the saturation for an image, use a whole number (integer) between -100 and 100. You can also define saturation using any decimal number between -100.00 and 100.00 For more details, Read documentation: https://www.contentstack.com/docs/developers/apis/image-delivery-api/#saturation

Example:

final stack = contentstack.Stack(apiKey, deliveryToken, environment);
final imageTransformation = stack.imageTransform(imageUrl);
final response = await imageTransformation.saturation(20);

Implementation

void saturation(int saturation) {
  query.append('saturation', saturation.toString());
}