fromVector2Center static method
- @Deprecated('Use RectExtension.fromCenter() instead. This function will be removed ' 'in v1.2.0')
Constructs a Rect with a width
and height
around the center
point.
Implementation
@Deprecated(
'Use RectExtension.fromCenter() instead. This function will be removed '
'in v1.2.0',
)
static Rect fromVector2Center({
required Vector2 center,
required double width,
required double height,
}) {
return fromCenter(center: center, width: width, height: height);
}