sendAllSpKeys static method

Future<void> sendAllSpKeys(
  1. SwiftSpKeysAction _,
  2. SocketConnect socketConnect
)

发送keys到Swift客户端

Implementation

static Future<void> sendAllSpKeys(SwiftSpKeysAction _,SocketConnect socketConnect) async {
  final SharedPreferences prefs = await SharedPreferences.getInstance();
  final keys = prefs.getKeys();
  ddCheckPluginLog("sp ll keys ${keys.length}");
  socketConnect.sendDataByModel(SocketSendModel.sp(model: SpView(keys: keys),type: SpView.socketKey));
}