Dart - topic()

This is reference documentation for the Nitric Dart SDK. To learn about Topics and Pub/Sub in Nitric start with the Async Messaging docs.

Creates a new Topic.

import 'package:nitric_sdk/nitric.dart';
final updates = Nitric.topic("updates");

Parameters

  • Name
    name
    Required
    Required
    Type
    String
    Description

    The name of the topic to create.

Examples

Create a new topic

import 'package:nitric_sdk/nitric.dart';
final updates = Nitric.topic("updates");

See also

Last updated on May 20, 2025