wrap static method
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);
}