getProfile method
Retrieves the user profile from the native platform.
Implementation
@override
Future<Map<String, dynamic>?> getProfile() async {
Map<Object?, Object?>? profile =
await methodChannel.invokeMethod<Map<Object?, Object?>?>('getProfile');
return profile?.cast<String, dynamic>();
}