getOathMechanism method

OathMechanism? getOathMechanism()

Gets the OathMechanism associated with this account.

Implementation

OathMechanism? getOathMechanism() {
  if (mechanismList == null) {
    return null;
  }

  for (Mechanism mechanism in mechanismList!) {
    if (mechanism.type == Mechanism.OATH) {
      return mechanism as OathMechanism?;
    }
  }
  return null;
}