getUserName function Null safety

String getUserName()

Implementation

String getUserName() => _names[_rand.nextInt(_names.length)];