fetchUserData method

  1. @override
Future<UserResponse> fetchUserData(
  1. UserDataQuery query
)
override

Invoke the method on the platform side for Asynchronously Call the fetch API and get the User data

Implementation

@override
Future<UserResponse> fetchUserData(UserDataQuery query) async =>
    UserResponse.fromMap(
        await methodChannel.invokeMethod('fetchUserData', query.toMap()));