Viewing version 4.1.0. Open the latest package page.
recase
4.1.0Changes the case of the input text to the desire case convention.
Readme
ReCase
Changes the case of the input text to the desire case convention.
import 'package:recase/recase.dart';
void main() {
ReCase rc = new ReCase('Just_someSample-text');
print(rc.camelCase); // Prints 'justSomeSampleText'
print(rc.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}
String extensions are also available.
import 'package:recase/recase.dart';
void main() {
String sample = 'Just_someSample-text';
print(sample.camelCase); // Prints 'justSomeSampleText'
print(sample.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}
This feature is available in version 3.0.0, and requires at least Dart 2.6
Supports:
- snake_case
- dot.case
- path/case
- param-case
- PascalCase
- Header-Case
- Title Case
- camelCase
- Sentence case
- CONSTANT_CASE
Changelog
4.1.0
- Updates default param value syntax
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'recase:4.1.0'pubspec.yaml
name: recase
version: 4.1.0
description: Changes the case of the input text to the desire case convention.
homepage: https://github.com/techniboogie-dart/recase
environment:
sdk: '>=2.12.0 <3.0.0'
dev_dependencies:
test: '^1.16.8'
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 49e4b871…a8bbe9 |
| 1.0.0+1 | Cached · Upstream SHA-256 matched | Download | c12adff6…d84279 |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | a46ab753…6a7797 |
| 2.0.0+1 | Cached · Upstream SHA-256 matched | Download | 30944783…434ed3 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | 71a9e299…9b43a7 |
| 3.0.0 | Cached · Upstream SHA-256 matched | Download | 94294b9b…3aae4f |
| 3.0.1 | Cached · Upstream SHA-256 matched | Download | d18e5f9c…590586 |
| 4.0.0-nullsafety.0 | Cached · Upstream SHA-256 matched | Download | 5f4694bb…bc1304 |
| 4.0.0 | Cached · Upstream SHA-256 matched | Download | 7aec9b9f…fc6ca5 |
| 4.1.0 | Cached · Upstream SHA-256 matched | Download | e4eb4ec2…f89213 |
Dependencies
No direct dependencies declared.