tryUnlock method

  1. @override
bool tryUnlock(
  1. dynamic code
)
override

Tries to unlock the current padlock with the specified code.

Implementation

@override
bool tryUnlock(code) {
  if (firstLocked != null) {
    return false;
  }
  unlock();
  return true;
}