NwcMethod.fromPlaintext constructor

NwcMethod.fromPlaintext(
  1. String plaintext
)

Factory method to get Method by plaintext

Implementation

factory NwcMethod.fromPlaintext(String plaintext) {
  return _methodsRegistry[plaintext] ?? NwcMethod.UNKNOWN;
}