uniqueId function Null safety

String uniqueId(
  1. [dynamic prefix = '']
)

Generates a unique ID. If prefix is given, the ID is appended to it.

Implementation

String uniqueId([prefix = '']) =>
    prefix + math.Random().nextInt(1000000).toString();