getSize function Null safety

double getSize(
  1. double size
)

Implementation

double getSize(double size) => size.sp / 2;