canTerminate method

bool canTerminate(
  1. String state
)

Implementation

bool canTerminate(String state) {
  var identityStatus1 = [
    IdentityStatus.Candidate,
    IdentityStatus.Verified,
    IdentityStatus.Suspended,
    IdentityStatus.Zombie,
    IdentityStatus.Human
  ];
  return (identityStatus1.contains(state));
}