Future<Response<dynamic>>

순9·2023년 3월 24일
0

Error

목록 보기
10/11
A value of type 'Future<Response<dynamic>>' can't be returned from an async function with return type 'Future<Map<String, dynamic>>'.
 - 'Future' is from 'dart:async'.
 - 'Response' is from 'package:dio/src/response.dart' ('/C:/Users/Lenovo/AppData/Local/Pub/Cache/hosted/pub.dev/dio-5.0.3/lib/src/response.dart').
 - 'Map' is from 'dart:core'.
    return resp;

데이터 값 받는 중에 나온 에러
해당 관련 에러 Future는 await 확인 할것

profile
1. 사용법 익히기 2. 원리가 뭔지 찾아보기 3. 원리를 공부하기

0개의 댓글