wrap static method

GTweenable? wrap(
  1. Object? target
)

Wraps the given object target as a GTweenableGlowFilter if it is a GlowFilter, otherwise returns null.

Implementation

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