wrap static method
Wraps the given object target
as a GTweenableRect if it is a
GRect, otherwise returns null
.
Implementation
static GTweenable? wrap(Object target) {
if (target is! GRect) {
return null;
}
return GTweenableRect(target);
}