fix
This commit is contained in:
parent
6244a587db
commit
b72baf2c65
@ -119,15 +119,7 @@ class Mount with ChangeNotifier {
|
|||||||
return <String>[];
|
return <String>[];
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> ret = [];
|
return (jsonDecode(response.body) as List).cast<String>();
|
||||||
{
|
|
||||||
final list = jsonDecode(response.body) as List;
|
|
||||||
for (var item in list) {
|
|
||||||
ret.add(item as String);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint('$e');
|
debugPrint('$e');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user