getDouble function Null safety

double getDouble(
  1. {int min = 0,
  2. int max = 100}
)

Implementation

double getDouble({int min = 0, int max = 100}) =>
    (_rand.nextDouble() * (max - min)) + min;