10 lines
321 B
Dart
10 lines
321 B
Dart
import 'package:dreampad/app/api/base_provider.dart';
|
|
import 'package:dreampad/app/models/app_update_model.dart';
|
|
|
|
class HomeProvider extends BaseProvider {
|
|
Future<AppUpdate?> getAppUpdate() async {
|
|
final res = await get('/api/app/version');
|
|
return res.body == null ? null : AppUpdate.fromJson(res.body);
|
|
}
|
|
}
|