feat:增加对话框工具类
This commit is contained in:
@@ -12,6 +12,15 @@ List<T> convertList<T>(
|
||||
);
|
||||
}
|
||||
|
||||
List<String> convertStringList(dynamic data) {
|
||||
if (data is List) {
|
||||
return data.map((item) => item.toString()).toList();
|
||||
}
|
||||
throw FormatException(
|
||||
'Expected a list of items for conversion, but got ${data.runtimeType}',
|
||||
);
|
||||
}
|
||||
|
||||
PageResult<T> convertPage<T>(
|
||||
dynamic data,
|
||||
T Function(Map<String, dynamic>) fromJson,
|
||||
|
||||
Reference in New Issue
Block a user