stack_wallet/lib/models/buy/buy_form_state.dart

26 lines
660 B
Dart
Raw Normal View History

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:stackwallet/services/buy/buy.dart';
class BuyFormState extends ChangeNotifier {
Buy? _buy;
Buy? get buy => _buy;
set buy(Buy? value) {
_buy = value;
// _onBuyTypeChanged();
}
bool reversed = false;
Future<void> updateEstimate({
required bool shouldNotifyListeners,
required bool reversed,
}) async {
// TODO implement updating estimaate based on changed selected crypto, fiat, etc
}
Future<void> swap({dynamic? market}) async {
// TODO implement swapping values on FiatOrCrypto toggle (or whatever it's called)
}
}