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