kauemurakami

feat: extensions methods convert value in percent value

  1 +import '../get_main.dart';
  2 +
  3 +//Converts a double value to a percentage
  4 +extension PercentSized on double {
  5 + // height: 50.0.hp = 50%
  6 + double get hp => (Get.height * (this / 100));
  7 + // width: 30.0.hp = 30%
  8 + double get wp => (Get.width * (this / 100));
  9 +}