Viewing version 4.0.0-nullsafety.0. Open the latest package page.

recase

4.0.0-nullsafety.0

Changes the case of the input text to the desire case convention.

Download archive

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

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'recase:4.0.0-nullsafety.0'
pubspec.yaml
name: recase
version: 4.0.0-nullsafety.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-0 <3.0.0'
dev_dependencies:
  test: '^1.16.0-nullsafety.12'

Version history

VersionPublishedArchiveSHA-256
1.0.0Cached · Upstream SHA-256 matchedDownload49e4b871…a8bbe9
1.0.0+1Cached · Upstream SHA-256 matchedDownloadc12adff6…d84279
2.0.0Cached · Upstream SHA-256 matchedDownloada46ab753…6a7797
2.0.0+1Cached · Upstream SHA-256 matchedDownload30944783…434ed3
2.0.1Cached · Upstream SHA-256 matchedDownload71a9e299…9b43a7
3.0.0Cached · Upstream SHA-256 matchedDownload94294b9b…3aae4f
3.0.1Cached · Upstream SHA-256 matchedDownloadd18e5f9c…590586
4.0.0-nullsafety.0Cached · Upstream SHA-256 matchedDownload5f4694bb…bc1304
4.0.0Cached · Upstream SHA-256 matchedDownload7aec9b9f…fc6ca5
4.1.0Cached · Upstream SHA-256 matchedDownloade4eb4ec2…f89213

Dependencies

No direct dependencies declared.