Open name27 opened 1 year ago
String? message = null;
result = item["name"] ?? "데이터를 불러올 수 없다";
void main(){ try{ List items = ["a", "b", "c"]; print(items[3]; } on RangeError catch(e){ print("범위에러 ${e}"); } }
FutureBuilder{ future: Future.delayed(Duration(seconds: 3), ()=> "Hello"), builder: (context, snapshot) { if(snapshot.connectionState == ConnectionState.done){ return Text(snapshot.data!); } return SizedBox(); } }
null-safety
String? message = null;
result = item["name"] ?? "데이터를 불러올 수 없다";
try-catch
FutureBuilder
로딩 위젯