【发布时间】:2021-07-10 07:11:06
【问题描述】:
我正在使用contacts_service: ^0.6.0 包,我想打印我的电话簿中的电话号码,但它正在打印 的实例而不是实际的电话号码。
这是我在调试面板中的输出。
I/flutter ( 8457): [Instance of 'Contact', Instance of 'Contact'].
这是我的代码:
`
_getContacts() async {
List<Contact> _contacts =
(await ContactsService.getContacts(withThumbnails: false)).toList();
setState(() {
contacts.addAll(_contacts);
print(contacts);
});
}`
【问题讨论】:
标签: android firebase flutter contacts