requireResolvable method
void
requireResolvable()
Refuses material that cannot open anything, in the words a caller shows.
Throws StateError when the material is not isResolvable — including a key file that is named but unread. Every registry calls this before accepting material, so every binding refuses the same input with the same sentence.
Implementation
void requireResolvable() {
if (isResolvable) return;
throw StateError(
isEmpty
? 'A key needs a passphrase and/or a key file.'
: 'The key file "$keyFileLocator" has not been read, so this '
'material cannot open anything yet.',
);
}