flatten method

TransformationData flatten(
  1. String? background
)

Method for Basic Transformations @param background String (Default: "000000") @return TransformationData.

Implementation

TransformationData flatten(
  String? background,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (background != null && background.isNotEmpty) {
    values['b'] = background;
  }

  return TransformationData(plugin: 't', name: 'flatten', values: values);
}