2022-07-09 07:11:26 +00:00
|
|
|
import 'package:event/event.dart';
|
|
|
|
import 'package:pikapika/basic/Method.dart';
|
|
|
|
|
2023-04-10 15:05:53 +00:00
|
|
|
import '../Entities.dart';
|
|
|
|
|
|
|
|
bool get isPro {
|
|
|
|
return _proInfoAll.proInfoAf.isPro || _proInfoAll.proInfoPat.isPro;
|
|
|
|
}
|
|
|
|
|
|
|
|
ProInfoAf get proInfoAf => _proInfoAll.proInfoAf;
|
|
|
|
ProInfoPat get proInfoPat => _proInfoAll.proInfoPat;
|
2022-07-09 07:11:26 +00:00
|
|
|
|
|
|
|
final proEvent = Event();
|
2023-04-10 15:05:53 +00:00
|
|
|
late ProInfoAll _proInfoAll;
|
2022-07-09 07:11:26 +00:00
|
|
|
|
|
|
|
Future reloadIsPro() async {
|
2023-04-10 15:05:53 +00:00
|
|
|
_proInfoAll = await method.proInfoAll();
|
2022-07-09 07:11:26 +00:00
|
|
|
proEvent.broadcast();
|
|
|
|
}
|