sizePCT method
VxAnimatedBox
sizePCT({
- required BuildContext context,
- required double widthPCT,
- 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;