getUsers method

Future<Either<String, dynamic>> getUsers()

Fetches the list of users from the native platform.

This method invokes the native method SmartfaceMobile.getUsers to retrieve the user data. The result is wrapped in an Either type, where the left side represents an error message as a String, and the right side contains the user data as a dynamic type.

Returns a Future that completes with an Either<String, dynamic> containing the result of the native method invocation.

Implementation

Future<Either<String, dynamic>> getUsers() {
  return invokeNativeMethod('SmartfaceMobile.getUsers');
}