getInt function Null safety

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

Implementation

int getInt({int min = 0, int max = 100}) => _rand.nextInt(max - min) + min;