mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 20:19:25 +00:00
17 lines
458 B
Dart
17 lines
458 B
Dart
|
import 'package:cake_wallet/ionia/ionia_service.dart';
|
||
|
import 'package:mobx/mobx.dart';
|
||
|
|
||
|
part 'cake_features_view_model.g.dart';
|
||
|
|
||
|
class CakeFeaturesViewModel = CakeFeaturesViewModelBase with _$CakeFeaturesViewModel;
|
||
|
|
||
|
abstract class CakeFeaturesViewModelBase with Store {
|
||
|
final IoniaService _ioniaService;
|
||
|
|
||
|
CakeFeaturesViewModelBase(this._ioniaService);
|
||
|
|
||
|
Future<bool> isIoniaUserAuthenticated() async {
|
||
|
return await _ioniaService.isLogined();
|
||
|
}
|
||
|
}
|