pikapika/lib/basic/config/IsPro.dart

15 lines
275 B
Dart

import 'package:event/event.dart';
import 'package:pikapika/basic/Method.dart';
var isPro = false;
var isProEx = 0;
final proEvent = Event();
Future reloadIsPro() async {
final p = await method.isPro();
isPro = p.isPro;
isProEx = p.expire;
proEvent.broadcast();
}