removeUser method

Future<Either<String, dynamic>> removeUser({
  1. required int id,
})

Removes a user with the given ID.

This method invokes the native method SmartfaceMobile.removeUser with the provided user ID.

id is the unique identifier of the user to be removed.

Returns a Future that completes with an Either containing a String error message or a dynamic result.

Implementation

Future<Either<String, dynamic>> removeUser({required int id}) {
  return invokeNativeMethod('SmartfaceMobile.removeUser', {
    'arg0': id,
  });
}