I have been trying to add the attractions list items to the objects tripAttractions list but it doesn't seem like its working. How do I add these items correctly?
class Trip {
String image;
String name;
String location;
List<Attraction> tripAttractions = [];
Trip({this.image , this.name, this.location, this.tripAttractions});
}
final List<Trip> tripList = [
Trip(image: 'test image', name: 'NY Trip', location: 'NY Address', tripAttractions: attractions)];
List<Attraction> attractions = [
Attraction('name', 'address', 'imageURL')];
