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) => _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) => _MappedTween<T>(this, mapper);