Command.adjustColor constructor

Command.adjustColor({
  1. int? id,
  2. required int percentage,
  3. required int duration,
})

Command to adjust the color within specified duration.

NOTE: The percentage parameter will be ignored and the color is internally defined and can’t specified.

Implementation

Command.adjustColor({
  this.id,
  required int percentage,
  required int duration,
})  : method = CommandMethods.adjustColor,
      parameters = <int>[percentage, duration];