wrap static method

GTweenable? wrap(
  1. Object target
)

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