uniqueId function Null safety
- [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();
Generates a unique ID. If prefix is given, the ID is appended to it.
String uniqueId([prefix = '']) =>
prefix + math.Random().nextInt(1000000).toString();