twn property

Returns a GTweenableDouble object created from the current value.

If the current value is a double, a new GTweenableDouble object is created using the current value as its initial value. If the current value is an int, a new GTweenableInt object is created using the current value as its initial value and then converted to a GTweenableDouble.

Implementation

GTweenableDouble get twn {
  return this is double
      ? GTweenableDouble(this as double)
      : GTweenableInt(this as int) as GTweenableDouble;
}