wrap static method

GTweenable? wrap(
  1. Object? target
)

Wraps the given target in a GTweenableDouble object if it is a double value, otherwise returns null.

Implementation

static GTweenable? wrap(Object? target) {
  return target is double ? GTweenableDouble(target) : null;
}