Phrase.generate constructor

Phrase.generate({
  1. int length = 24,
})

Implementation

factory Phrase.generate({int length = 24}) {
  assert(length == 12 || length == 24);
  return Phrase.fromString(
    generateMnemonic(bitLength: length == 24 ? 256 : 128),
  );
}