addAriaTask method
Future<String>
addAriaTask({
- required List<
String> urls, - required Client client,
- TaskOptions? options,
- int? position,
- required FutureOr<
void> onComplete(), - required FutureOr<
void> onError(), - dynamic hint,
override
Implementation
@override
Future<String> addAriaTask(
{required List<String> urls,
required Client client,
TaskOptions? options,
int? position,
required FutureOr<void> Function() onComplete,
required FutureOr<void> Function() onError,
dynamic hint}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
final serializer = SseSerializer(generalizedFrbRustBinding);
sse_encode_list_String(urls, serializer);
sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockClient(
client, serializer);
sse_encode_opt_box_autoadd_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockTaskOptions(
options, serializer);
sse_encode_opt_box_autoadd_u_32(position, serializer);
sse_encode_DartFn_Inputs__Output_unit(onComplete, serializer);
sse_encode_DartFn_Inputs__Output_unit(onError, serializer);
pdeCallFfi(generalizedFrbRustBinding, serializer,
funcId: 3, port: port_);
},
codec: SseCodec(
decodeSuccessData: sse_decode_String,
decodeErrorData: sse_decode_my_error,
),
constMeta: kAddAriaTaskConstMeta,
argValues: [urls, client, options, position, onComplete, onError],
apiImpl: this,
hint: hint,
));
}