getLauncherUserInfo method

  1. @override
Future<List<Map<String, String>>> getLauncherUserInfo()
override

Implementation

@override
Future<List<Map<String, String>>> getLauncherUserInfo() async {
  final result = await methodChannel.invokeMethod<String>('getLauncherUserInfo');
  final List<dynamic> jsonList = jsonDecode(result ?? '[]');
  return jsonList.map((e) => {
    'userProfile': e['userProfile'].toString(),
    'userType': e['userType'].toString()
  }).toList();
}