updateSelectedCardIndexForButton method

dynamic updateSelectedCardIndexForButton()

Implementation

updateSelectedCardIndexForButton() {

  if(widget.c.resWallet.value.wallets.isNotEmpty) {
    if(widget.c.selectedCardIndex < 0) {
      if(mounted) {
        setState(() {
          widget.c.selectedCardIndex = 0;
        });
      }
    }
  }
}