wrap static method

GTweenable? wrap(
  1. Object? target
)

Creates a GTweenable instance of GTweenableMap from an object.

Returns a GTweenableMap instance if the target object is a Map<String?,dynamic>, otherwise, returns null.

Implementation

static GTweenable? wrap(Object? target) {
  return target is Map<String?, dynamic> ? GTweenableMap(target) : null;
}