speed method
Returns a copy of this AnimationSpec with the given speed.
For example a speed of 0.5 will cause the animation to run at half speed.
Examples
import 'package:flutter/animation.dart';
final withSpeed = Curves.linear.animation().speed(0.5);
Implementation
AnimationSpec speed(double speed) {
if (speed <= 0) {
throw ArgumentError.value(speed, 'speed', 'must be greater than zero.');
}
return _copyWith(speed: speed);
}