← All extensions

Freezed Snippets

v0.0.1 · by Steeven Lopez · added 3 November 2026

Collection of Freezed snippets for Flutter/Dart development on the Zed editor.

Snippets

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for Freezed Snippets. The extension's id is freezed-dart-flutter-snippets.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Freezed Snippets for Zed

A collection of Freezed snippets for Flutter development in the Zed editor. These snippets are designed to accelerate your Freezed workflow and are only available in .dart files.

Installation

From Zed Extensions (Recommended)

  1. Open Zed
  2. Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X)
  3. Search for "Riverpod Snippets"
  4. Click Install

Available Snippets

PrefixDescription
freezedpartCreates a part statement for Freezed code generation
freezeddataclassCreates a basic Freezed data class (no JSON serialization)
freezedjsonclassCreates a Freezed class with JSON serialization support
freezedjsonstatementCreates a fromJson factory method
freezedunionclassCreates a Freezed union/sealed class
freezedunioncaseAdds a union case to an existing Freezed union class
freezedjsonclassicCreates a Freezed classic class with serialization support
freezeddataclassicCreates a Freezed Classic Class with no serialization support

Usage

  1. Open a .dart file in Zed
  2. Type the snippet prefix (e.g., freezeddataclass)
  3. Press Tab to expand the snippet
  4. Use Tab to navigate between placeholders
  5. Fill in the values and press Tab to move to the next placeholder

Examples

Adding a Part Statement

Type freezedpart and press Tab:

part 'my_model.freezed.dart';

part statement is required for Freezed to work properly.

Basic Data Class

Type freezeddataclass and press Tab:

@freezed
abstract class User with _$User {
  const factory User({
    required String name,
    required int age,
  }) = _User;
}

Data Class with JSON Serialization

Type freezedjsonclass and press Tab:

@freezed
abstract class Product with _$Product {
  const factory Product({
    required String id,
    required String name,
    required double price,
  }) = _Product;

  factory Product.fromJson(Map<String, dynamic> json) => _$ProductFromJson(json);
}

Union/Sealed Class

Type freezedunionclass and press Tab:

@freezed
class Result with _$Result {
  const factory Result.success({required String data}) = Success;
  const factory Result.error({required String message}) = Error;
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

Apache License 2.0 - see LICENSE for details.

Related