소개
게시글
질문&답변
2022.03.19
snapshot.data 오류
import 'package:cloud_firestore/cloud_firestore.dart'; class Movie { final String title; final String keyword; final String poster; final bool like; final DocumentReference? reference; Movie.fromMap(MapString, dynamic> map, {this.reference}) : title = map['title'], keyword = map['keyword'], poster = map['poster'], like = map['like']; Movie.fromSnapshow(DocumentSnapshot snapshot) : this.fromMap(snapshot.data() as MapString, dynamic>, reference: snapshot.reference); @override String toString() => 'Movice$title:$keyword>'; }
- 1
- 6
- 2.3K
질문&답변
2022.03.07
({this.movies}); 에서 movies가 에러나는 이유를 모르겠습니다 ㅠㅠ
이렇게 사용하시면 됩니다. class CarouselImage extends StatefulWidget { final ListMovie> movies; CarouselImage({required this.movies}); _CarouselImageState createState() => _CarouselImageState(); }
- 1
- 10
- 746