SpriteEntity constructor
SpriteEntity({
- String? imageKey,
- Iterable<
FrameEntity> ? frames, - 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;
}