registerFutureCall method

void registerFutureCall(
  1. FutureCall<SerializableModel> call,
  2. String name
)

Registers a FutureCall with the Serverpod and associates it with the specified name.

Implementation

void registerFutureCall(FutureCall call, String name) {
  var futureCallManager = _futureCallManager;
  if (futureCallManager == null) {
    throw StateError('Future calls are disabled.');
  }
  _futureCallManager?.registerFutureCall(call, name);
}