SpriteComponent.fromImage constructor
SpriteComponent.fromImage(})
Implementation
SpriteComponent.fromImage(
Image image, {
Vector2? srcPosition,
Vector2? srcSize,
bool? autoResize,
Paint? paint,
Vector2? position,
Vector2? size,
Vector2? scale,
double? angle,
double nativeAngle = 0,
Anchor? anchor,
Iterable<Component>? children,
int? priority,
ComponentKey? key,
}) : this(
sprite: Sprite(
image,
srcPosition: srcPosition,
srcSize: srcSize,
),
autoResize: autoResize,
paint: paint,
position: position,
size: size,
scale: scale,
angle: angle,
nativeAngle: nativeAngle,
anchor: anchor,
children: children,
priority: priority,
key: key,
);