wPer method

Widget wPer(
  1. BuildContext context,
  2. double percent, {
  3. Key? key,
})

Implementation

Widget wPer(BuildContext context, double percent, {Key? key}) {
  assert(percent < 100 && percent > 0,
      "Provided Width value Must be in 0..100 range");
  return SizedBox(
    key: key,
    width: context.percentWidth * percent,
    child: this,
  );
}