buildSyncBody static method

Future<JsonMap?> buildSyncBody(
  1. List<Location> locations,
  2. JsonMap extras
)

Builds the sync body using the registered callback. Returns null if no builder is registered.

Implementation

static Future<JsonMap?> buildSyncBody(
  List<Location> locations,
  JsonMap extras,
) async {
  if (_syncBodyBuilder == null) return null;
  return _syncBodyBuilder!(locations, extras);
}