wrap static method

GTweenable? wrap(
  1. Object target
)

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);
}