get<T> method

Future<FunctionResponse<T>> get<T>(
  1. String functionName
)

Execute a GET request to a cloud function

Convenience method for GET requests without payload

Example:

final stats = await db.functions.get<Map<String, dynamic>>('getStats');
print(stats.result);

Implementation

Future<FunctionResponse<T>> get<T>(String functionName) {
  return execute<T>(functionName, method: FunctionMethod.get);
}