linear method

TransformationData linear(
  1. int? a,
  2. int? b
)

Method for Basic Transformations

  • a : a (Default: 1)

  • b : b (Default: 0)

Returns TransformationData.

Implementation

TransformationData linear(
  int? a,
  int? b,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

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

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

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