addChild method

void addChild(
  1. DFSprite? sprite
)

增加精灵 增加进来精灵才能被绘制

Implementation

void addChild(DFSprite? sprite) {
  if (sprite != null) {
    children.add(sprite);
  }
}