mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 20:19:25 +00:00
19 lines
373 B
Dart
19 lines
373 B
Dart
|
import 'package:mobx/mobx.dart';
|
||
|
|
||
|
part 'fiat_convertation_store.g.dart';
|
||
|
|
||
|
class FiatConvertationStore = FiatConvertationStoreBase with _$FiatConvertationStore;
|
||
|
|
||
|
abstract class FiatConvertationStoreBase with Store {
|
||
|
FiatConvertationStoreBase() {
|
||
|
setPrice(0.0);
|
||
|
}
|
||
|
|
||
|
@observable
|
||
|
double price;
|
||
|
|
||
|
@action
|
||
|
void setPrice(double price) {
|
||
|
this.price = price;
|
||
|
}
|
||
|
}
|