Rectangle<num> bounds

Source

@override
Rectangle<num> get bounds {
  return bitmapData == null
      ? new Rectangle<num>(0.0, 0.0, 0.0, 0.0)
      : new Rectangle<num>(0.0, 0.0, bitmapData.width, bitmapData.height);
}