custom method

String custom({
  1. required int length,
  2. required String charSet,
})

Generate an ID using a custom charSet.

length: Number of characters in the generated ID. charSet: String of characters from which to pick randomly.

Implementation

String custom({required int length, required String charSet}) {
  return _generate(length: length, charSet: charSet, excludedCharSet: '');
}