getAppList method

  1. @override
Future<List<String?>> getAppList()
override

Implementation

@override
Future<List<String?>> getAppList() async {
  final dynamic res= await methodChannel.invokeMethod('getList');

  Map result=res;
  List<Object?> obj=result["key"];

return   obj.map((e){
    if(e!=null){
      return e as String? ??"112312313";
    }
  }).toList();


}