canPop method

  1. @override
bool canPop()
override

Checks if the stack can be popped.

Implementation

@override
bool canPop() => _stack.length > 1;