changeColor method

void changeColor(
  1. Color color
)

Use this function to set the value for ImageSequenceAnimatorState.color at runtime.

Implementation

void changeColor(Color color) {
  if (!_isReadyToPlay) return;

  this.color = color;
  _colorChanged = true;
  _changeNotifier.value++;
}