rotate method

TransformationData rotate(
  1. int? angle,
  2. String? background
)

Method for Basic Transformations

  • angle : angle (Default: 0)
  • background : background (Default: "000000") Returns TransformationData.

Implementation

TransformationData rotate(
  int? angle,
  String? background,
) {
  var values = <String, String>{};
  if (angle != null) {
    values['a'] = angle.toString();
  }
  if (background != null && background.isNotEmpty) {
    values['b'] = background;
  }
  return TransformationData(plugin: 't', name: 'rotate', values: values);
}