copyActor method

void copyActor(
  1. Actor actor
)

Implementation

void copyActor(Actor actor) {
  maxTextureIndex = actor.maxTextureIndex;
  int artboardCount = actor._artboards.length;
  if (artboardCount > 0) {
    _artboards = <ActorArtboard?>[];
    for (final ActorArtboard? artboard in actor._artboards) {
      _artboards.add(artboard?.makeInstanceWithActor(this));
    }
  }
}