SpriteEntity constructor

SpriteEntity({
  1. String? imageKey,
  2. Iterable<FrameEntity>? frames,
  3. String? matteKey,
})

Implementation

factory SpriteEntity({
  $core.String? imageKey,
  $core.Iterable<FrameEntity>? frames,
  $core.String? matteKey,
}) {
  final _result = create();
  if (imageKey != null) {
    _result.imageKey = imageKey;
  }
  if (frames != null) {
    _result.frames.addAll(frames);
  }
  if (matteKey != null) {
    _result.matteKey = matteKey;
  }
  return _result;
}