getHeight function Null safety

double getHeight(
  1. int percent
)

Implementation

double getHeight(int percent) => Get.height * _getPercent(percent);