handleSetServerURL method

void handleSetServerURL(
  1. MethodCall call
)

Implementation

void handleSetServerURL(MethodCall call) {
  Map<Object?, Object?> args = call.arguments as Map<Object?, Object?>;
  String serverURL = args['serverURL'] as String;
  set_config(js.jsify({'api_host': serverURL}));
}