mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
19 lines
No EOL
373 B
Dart
19 lines
No EOL
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;
|
|
}
|
|
} |