detect method

TransformationData detect(
  1. bool? detecttext
)

Method for Watermark Detection Plugin @param Detect Text bool (Default: false) @return TransformationData.

Implementation

TransformationData detect(
  bool? detecttext,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (detecttext != null) {
    values['detect_text'] = detecttext.toString();
  }

  return TransformationData(plugin: 'wmc', name: 'detect', values: values);
}