fetchUser method

Future<void> fetchUser(
  1. int id
)

Fetches user data from the native platform.

This method invokes a native method to fetch user data based on the provided user ID.

Args: id (int): The ID of the user to fetch.

Returns: A Future that completes when the user data has been fetched.

Implementation

Future<void> fetchUser(int id) async {
  final _ = await invokeNativeMethod('SmartfaceMobile.fetchUser', {
    'arg0': id,
  });
}