Dart - job()

This is reference documentation for the Nitric Dart SDK. To learn about Batch Services in Nitric start with the Batch docs.

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]);
Last updated on Apr 3, 2025