# source_helper 1.4.0

Utilities to help with Dart source code generation. Includes utilities for properly generating String literals from any String value.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'source_helper:1.4.0'
```
Published: 2026-10-19T18:07:40.118073Z
Expected archive SHA-256: 279126bce72de3f2b7d4756408a4157988cf6bb4815be551bf55851aa00e9984

Available in cache; verification: upstream_checksum
## Direct dependencies
- analyzer: >=10.1.0 <15.0.0
- source_gen: ^4.1.2

## Package README (untrusted upstream documentation)
Utilities to help with Dart source code generation.

[![Pub package](https://img.shields.io/pub/v/source_helper.svg)](https://pub.dev/packages/source_helper)
[![Dart](https://github.com/google/source_helper.dart/actions/workflows/ci.yml/badge.svg)](https://github.com/google/source_helper.dart/actions/workflows/ci.yml)
[![package publisher](https://img.shields.io/pub/publisher/source_helper.svg)](https://pub.dev/packages/source_helper/publisher)
[![Coverage Status](https://coveralls.io/repos/github/google/source_helper.dart/badge.svg)](https://coveralls.io/github/google/source_helper.dart)

## Contributing

See [`CONTRIBUTING.md`](CONTRIBUTING.md) for details.

## License

Apache 2.0; see [`LICENSE`](LICENSE) for details.

## Disclaimer

This project is not an official Google project. It is not supported by
Google and Google specifically disclaims all warranties as to its quality,
merchantability, or fitness for a particular purpose.

## Changelog
## 1.4.0

- Require `analyzer: '>=10.1.0 <15.0.0'` and `source_gen: ^4.1.2`.
- Add `DartType.toStringNonNullable()` and `DartType.enumConstants` to
  `DartTypeExtension`.
- Add class-model helpers shared by code generators:
  - `createSortedFieldSet`, `InheritedMemberScope`, `fieldOverrideChain` and
    `firstAnnotationOnProperty` for the field set of a class and its
    supertypes.
  - `constructorByName`, `planConstruction` with `ConstructorPlan`, and
    `typeParameterListCode` for constructor invocations.
  - `ExecutableElementExtension.qualifiedName` for invocation targets.

## 1.3.13

- Require `analyzer: '>=9.0.0 <15.0.0'`

## 1.3.12

- Require `analyzer: '>=9.0.0 <14.0.0'`

## 1.3.11

- Require `analyzer: '>=9.0.0 <13.0.0'`

## 1.3.10

- Require `analyzer: '>=9.0.0 <11.0.0'`

## 1.3.9

- Require `analyzer: ^9.0.0`
- Require `sdk: ^3.9.0`
- Require `source_gen: ^4.1.1`

## 1.3.8

- Require `analyzer: ^7.4.0`
- Require `source_gen: >3.1.0 <5.0.0`
- Require `sdk: ^3.7.0`

## 1.3.7

- Required `analyzer: '>=7.3.0 <9.0.0'`.

## 1.3.6

- Require `analyzer: ^7.3.0`
- Require `source_gen: >=2.0.0 <4.0.0`
- Require `sdk: ^3.6.0`

## 1.3.5

- Add `camel` to `extension CaseHelper on String`.
- Support the latest `package:analyzer` and `package:source_gen`.
- Require `sdk: ^3.4.0`

## 1.3.4

- Require `analyzer: >=5.12.0 <7.0.0`
- Require `sdk: '>=2.19.0 <3.0.0'`

## 1.3.3

- Require `analyzer: '>=4.6.0 <6.0.0'`
- Require `sdk: '>=2.17.0 <3.0.0'`

## 1.3.2

- Support the latest version of `package:analyzer`.

## 1.3.1

- Support the latest version of `package:analyzer`.

## 1.3.0

- Added `extension CaseHelper on String` to preform common, identifier-related
  conversions.
- Added an example

## 1.2.1

- More efficiently escape strings with both single and double quotes.

## 1.2.0

- Support the latest version of `package:analyzer`.

## 1.1.0

- Added `typeArgumentsOf` extension to `DartType`.

## 1.0.0

- First release!







 
