getCurrentUser method
Get the current user’s info. Throws if no user is logged in. getCurrentUser function on the native side is invoked returns a map with all the user details
Implementation
@override
Future<Map<String, dynamic>> getCurrentUser() async {
final Map<dynamic, dynamic> result = await methodChannel.invokeMethod(
'getCurrentUser',
);
return Map<String, dynamic>.from(result);
}