require method

Future<void> require()

Throws PrfUnavailableException with a user-facing message unless supported.

Implementation

Future<void> require() async {
  if (!await supported()) {
    throw PrfUnavailableException(prfUnsupportedMessage);
  }
}