import 'package:flutter/foundation.dart'; import 'package:robo_advisory/models/wallet.dart'; import 'package:robo_advisory/repository/wallet.repository.dart'; class WalletProvider with ChangeNotifier { Wallet _wallet = Wallet.emptyWallet; Wallet get wallet => _wallet; void setWallet(Wallet wallet) { _wallet = wallet; notifyListeners(); } Future loadWallet() async { return await WalletRepository.loadWallet(); } }