wrap static method

GTweenable? wrap(
  1. Object target
)

Wraps the given object target as a GTweenablePoint if it is a GPoint, otherwise returns null.

Implementation

static GTweenable? wrap(Object target) {
  if (target is! GPoint) {
    return null;
  }
  return GTweenablePoint(target);
}