wrap static method

GTweenable? wrap(
  1. Object? target
)

Returns an instance of GTweenableList if the given target object is a List, otherwise returns null.

Implementation

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