sizePCT method

VxAnimatedBox sizePCT({
  1. required BuildContext context,
  2. required double widthPCT,
  3. required double heightPCT,
})

Sets the size (width & height in percentage) property of the box.

Implementation

VxAnimatedBox sizePCT(
        {required BuildContext context,
        required double widthPCT,
        required double heightPCT}) =>
    this
      .._width = context.percentWidth * widthPCT
      .._height = context.percentHeight * heightPCT;