fromVector2Center static method

  1. @Deprecated('Use RectExtension.fromCenter() instead. This function will be removed ' 'in v1.2.0')
Rect fromVector2Center({
  1. required Vector2 center,
  2. required double width,
  3. required double height,
})

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);
}