When I try to use the existing package, I am receiving several compilation errors coming from this package. It seems to be a casting issue.
I am on the Flutter beta v2.2.0-10.1pre
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:306:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
- 'Iterable' is from 'dart:core'.
- 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
- 'List' is from 'dart:core'.
.notNull(),
^
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:308:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
- 'Iterable' is from 'dart:core'.
- 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
- 'List' is from 'dart:core'.
.notNull(),
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:313:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
- 'Iterable' is from 'dart:core'.
- 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
- 'List' is from 'dart:core'.
.notNull(),
^
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:316:9: Error: The argument type 'Iterable<ContactDate>' can't be assigned to the parameter type 'List<ContactDate>?'.
- 'Iterable' is from 'dart:core'.
- 'ContactDate' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
- 'List' is from 'dart:core'.
].notNull(),
^
/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart:320:9: Error: The argument type 'Iterable<PostalAddress>' can't be assigned to the parameter type 'List<PostalAddress>?'.
- 'Iterable' is from 'dart:core'.
- 'PostalAddress' is from 'package:flutter_contact/contact.dart' ('/C:/Users/aaqib/AppData/Local/Pub/Cache/git/flutter_contact-22a3bea76f2b03bdc649f3245e770f3d653b1b1d/lib/contact.dart').
When I try to use the existing package, I am receiving several compilation errors coming from this package. It seems to be a casting issue. I am on the Flutter beta v2.2.0-10.1pre