canPop property

bool canPop

Checks if stack contains enough items to pop last one.

Implementation

bool get canPop => isRooted ? _stack.length > 1 : _stack.isNotEmpty;