map method
Creates a new tween that maps the value through a function.
Example:
final mapped = tween.map((value) => value * 2);
Implementation
Tween<T> map(T Function(T) mapper) {
return _MappedTween<T>(this, mapper);
}
Creates a new tween that maps the value through a function.
Example:
final mapped = tween.map((value) => value * 2);
Tween<T> map(T Function(T) mapper) {
return _MappedTween<T>(this, mapper);
}