fetchAllFromServer method

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

Fetches all data from the server.

This method invokes the native method SmartfaceMobile.fetchAllFromServer.

Returns: A Future that resolves to an Either<String, dynamic> indicating the result of the fetch operation.

Example:

final result = await fetchAllFromServer();

Implementation

Future<Either<String, dynamic>> fetchAllFromServer() async {
  final groupRestoreResponse = await _restoreStoredGroupKeys();
  if (groupRestoreResponse.isLeft()) {
    return groupRestoreResponse;
  }

  return invokeNativeMethod('SmartfaceMobile.fetchAllFromServer');
}