Viewing version 0.11.0. Open the latest package page.

freezed_annotation

0.11.0

Annotations for the freezed code-generator. This package does nothing without freezed too.

Download archive

Readme

Annotations for freezed.
This package does nothing without freezed.

Changelog

0.11.0

  • Added @With and @Implements decorators to allow only a specific constructor of a union type to implement an interface:

    @freezed
    abstract class Example with _$Example {
      const factory Example.person(String name, int age) = Person;
    
      @Implements(GeographicArea)
      const factory Example.city(String name, int population) = City;
    }
    

    Thanks to @long1eu~

0.7.1

Minor change to @Default to fix an issue with complex default values.

0.7.0

Add @Default annotation

0.6.0

Added @late annotation.

0.4.0

Added a @nullable annotation.

0.3.1

Change version of collection to work with flutter_test.

0.3.0

Initial release of the annotation package.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'freezed_annotation:0.11.0'
pubspec.yaml
name: freezed_annotation
description: >
  Annotations for the freezed code-generator.
  This package does nothing without freezed too.
version: 0.11.0
homepage: https://github.com/rrousselGit/freezed
authors:
  - Remi Rousselet <darky12s@gmail.com>

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  collection: ^1.14.0
  json_annotation: ">= 3.0.0 <4.0.0"
  meta: ^1.1.0

Version history

VersionPublishedArchiveSHA-256
0.3.0Cached · Upstream SHA-256 matchedDownload198f2be2…7ccfdb
0.3.1Cached · Upstream SHA-256 matchedDownload2fe6c869…7265fb
0.4.0Cached · Upstream SHA-256 matchedDownloadc7a95b25…1b954a
0.6.0Cached · Upstream SHA-256 matchedDownload2dc4f187…0c6b14
0.7.0Cached · Upstream SHA-256 matchedDownload906de2bf…f2acfb
0.7.1Cached · Upstream SHA-256 matchedDownloadf9543bd4…6b8e9c
0.11.0-devCached · Upstream SHA-256 matchedDownload0fc137d2…423ee0
0.11.0Cached · Upstream SHA-256 matchedDownloadbc1474ce…45035d
0.11.0+1Cached · Upstream SHA-256 matchedDownload11eecdb9…165876
0.12.0Cached · Upstream SHA-256 matchedDownloadf2a47f62…b77f11
0.13.0-nullsafety.0Cached · Upstream SHA-256 matchedDownload3c992c6c…74589a
0.14.0Cached · Upstream SHA-256 matchedDownloadcbd8c9e3…99f796
0.14.1Cached · Upstream SHA-256 matchedDownload07568a2b…c97d0d
0.14.2Cached · Upstream SHA-256 matchedDownload660c3d31…124927
0.14.3Cached · Upstream SHA-256 matchedDownload70776c45…72c6e9
0.15.0Cached · Upstream SHA-256 matchedDownload02d17a24…e033ce
1.0.0Cached · Upstream SHA-256 matchedDownload2ea39b74…ce1bb8
1.1.0Cached · Upstream SHA-256 matchedDownload1be037f9…41a4b8
2.0.0Cached · Upstream SHA-256 matchedDownload1a1ba6ef…cf3b89
2.0.1Cached · Upstream SHA-256 matchedDownloadbbffb1cc…3e6c9c
2.0.3Cached · Upstream SHA-256 matchedDownload5a5d169e…814d88
2.1.0Cached · Upstream SHA-256 matchedDownload625eb228…e11678
2.2.0Cached · Upstream SHA-256 matchedDownloadaeac1585…684338
2.4.1Cached · Upstream SHA-256 matchedDownloadc3fd9336…3b5c2d
2.4.2Cached · Upstream SHA-256 matchedDownloadf54946fd…4705f2
2.4.3Cached · Upstream SHA-256 matchedDownloadf9f6597a…0f2a9b
2.4.4Cached · Upstream SHA-256 matchedDownloadc2e2d632…595fe2
3.0.0Cached · Upstream SHA-256 matchedDownloadc87ff004…6e044b
3.1.0Cached · Upstream SHA-256 matchedDownload7294967f…6d44d8

Dependencies

collection "^1.14.0"

json_annotation "\u003e= 3.0.0 \u003c4.0.0"

meta "^1.1.0"