import 'package:call_log/call_log.dart'; import 'package:flutter/material.dart'; import '../model/phone_num_model.dart'; import '../utils/hive_store.dart'; class PhoneNumProvider extends ChangeNotifier{ final List _phoneNum=[PhoneNumModel(num: "",time: 0,name: "", state:false)]; List get phoneNum=>_phoneNum; Future list(List phoneList) async{ // await HiveStore.dataBox!.get(); // final Iterable entries = await CallLog.query(); // for (CallLogEntry entrie in entries) { // _phoneNum.add(PhoneNumModel( // num: entrie.number, // time: entrie.timestamp, // name: entrie.name, // state: false, // )); // // a.add(entrie.number); // } // final phoneList=_phoneNum.toSet(); // final phoneList= HiveStore.dataBox?.get(phoneNum); return ; } // Future }