newPageKey method

ValueKey<String> newPageKey({
  1. String prefix = 'n+',
})

Implementation

ValueKey<String> newPageKey({String prefix = 'n+'}) {
  final key =
      String.fromCharCodes(List.generate(24, (_) => random.nextInt(97) + 33));

  return ValueKey('$prefix$key');
}