wrap static method

GTweenable? wrap(
  1. Object? target
)

Wraps a target object in a GTweenableDisplayObject instance.

If the target is not a GDisplayObject, it returns null.

Implementation

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