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()
Creates a new Batch Job.
import 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.job("analyze");
Parameters
- Name
name
- Required
- Required
- Type
- String
- Description
The unique name of this Batch Job within the app. Subsequent calls to
job
with the same name will return the same object.
Examples
Create a Job
import 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.job("analyze");
Create a Job with permissions to submit jobs
import 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.job("analyze").allow([JobPermission.submit]);