firstLocked property

Padlock? firstLocked

Returns the first child padlock that is still locked.

Implementation

Padlock? get firstLocked {
  for (Padlock padlock in padlocks) {
    if (padlock.isLocked) {
      return padlock;
    }
  }
  return null;
}