i change the code of "topTwoCards" and "bottomTwoCards" to the following, to make sure it is workiing for lists with 0 or 1 element as well.
List<SwipeCard> topTwoCards() => _cards.sublist( (_cards.length > 1) ? (_cards.length - 2) : 0, _cards.length);