map method

Tween<T> map(
  1. T mapper(
    1. T
    )
)

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);
}