【发布时间】:2021-06-08 19:58:42
【问题描述】:
我正在尝试使用函数getContactsForPhone 获取Contact
getName()async{
number = '123-456-7890'
return await ContactsService.getContactsForPhone(number).then((value) => value.elementAt(0).displayName.toString());
}
但我得到的是Future<dynmaic> 而不是应该是字符串的.displayName
【问题讨论】: