feat:riverpod 迁移 LocalizationUIModel

This commit is contained in:
2024-03-10 16:26:04 +08:00
parent 6dfb6b3cb0
commit 5c45e23d23
7 changed files with 1156 additions and 3 deletions

View File

@ -0,0 +1,12 @@
import 'package:starcitizen_doctor/common/utils/log.dart';
extension AsyncError on Future {
Future<T?> unwrap<T>() async {
try {
return await this;
} catch (e) {
dPrint("unwrap error:$e");
return null;
}
}
}