v4.1.0
recase
將輸入文字的大小寫變更為所需的大小寫慣例。
370喜歡 287萬近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
techniboogie-dart/recase open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
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:
依賴清單 1 項
^1.16.8先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗