animate static method

Data animate(
  1. Entity entity,
  2. Time duration, {
  3. Time start = const Time(0),
  4. double? shadowStrength,
  5. Transformation? transformation,
  6. double? shadowRadius,
  7. int? textOpacity,
})

Given the entity to animate, duration, start time, and animatable fields, this constructs a data command.

Display.animate
Entity Display entity to animate
Time duration of the animation
start time to wait until animation starts(default=0t)
shadowRadius double size of the shadow (optional)
shadowStrength double strength of the shadow (optional)
transformation a Transformation object describing the scale, rotation and translation of the display (optional)
textOpacity Alpha value of rendered text. Alpha value is from 0 to 255. (optional)

Implementation

static Data animate(
  Entity entity,
  Time duration, {
  Time start = const Time(0),
  double? shadowStrength,
  Transformation? transformation,
  double? shadowRadius,
  int? textOpacity,
}) =>
    set(
      entity,
      duration: duration,
      start: start,
      shadowRadius: shadowRadius,
      shadowStrength: shadowStrength,
      textOpacity: textOpacity,
      transformation: transformation,
    );