The Dart SDK is currently in experimental status. If you would like to provide feedback, please reach out to us with your suggestions and comments on our Discord.
Dart - job.submit()
Jobs may be submitted from Nitric services or other batches using the submit method on the job reference. When submitting a job you can provide a payload that will be passed to the job handler function.
import 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.job("analyze").allow([JobPermission.submit]);
await analyze.submit({ message: "message contents" });
Parameters
- Name
 message- Required
 - Required
 - Type
 - Map<String, dynamic>
 - Description
 The data that will be sent to the submit
Examples
Submit a job request
import 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.job("analyze").allow([JobPermission.submit]);
await analyze.submit({ message: "data contents" });