mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +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;
|
|
}
|
|
} |