# claimHandle method | |
[HandleInfo](../../zircon/HandleInfo-class.md) claimHandle | |
() | |
## Implementation | |
```dart | |
HandleInfo claimHandle() { | |
if (_nextHandle >= handleInfos.length) { | |
throw FidlError( | |
'Cannot access out of range handle', FidlErrorCode.fidlTooFewHandles); | |
} | |
return handleInfos[_nextHandle++]; | |
} | |
``` | |