swipe method
Implementation
void swipe(IconPosition iconPosition, CardPosition cardPosition) => _state != null ? _state!.onSwipe(iconPosition, cardPosition) : null;
void swipe(IconPosition iconPosition, CardPosition cardPosition) => _state != null ? _state!.onSwipe(iconPosition, cardPosition) : null;