executeRemoteAction method

  1. @mustBeOverridden
Future<Map<String, dynamic>?> executeRemoteAction(
  1. ServerAction action,
  2. Map<String, dynamic> payload
)

Executes a server action with the given payload and returns a server event.

The action parameter represents the server action to execute. The payload parameter contains any additional data required for the action.

This method must be overridden by implementers.

Throws MissingCapabilityMethodImplementation by default.

Implementation

@mustBeOverridden
Future<Map<String, dynamic>?> executeRemoteAction(
  ServerAction action,
  Map<String, dynamic> payload,
) =>
    throw const MissingCapabilityMethodImplementation(
      "executeRemoteAction",
      "TransportCapabilityDelegate",
    );