getPushMechanism method

PushMechanism? getPushMechanism()

Gets the PushMechanism associated with this account.

Implementation

PushMechanism? getPushMechanism() {
  if (mechanismList == null) {
    return null;
  }

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