http 사용법 조금 변했습니다.
153
2
void main() {
test('http 통신 테스트', () async {
var uri = Uri.parse('https://api.airvisual.com/v2/nearest_city?key=e3d94328-62dc-4e8d-b34a-091199282977');
var response = await http.get(uri);
expect(response.statusCode, 200);
});
}
답변 1





