File tree Expand file tree Collapse file tree 7 files changed +11
-10
lines changed
Expand file tree Collapse file tree 7 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 88//.title~
99
1010export './string_case_types.dart' ;
11- export './ extensions/string_extension .dart' ;
12- export './ extensions/string_case_conversions_extension .dart' ;
11+ export 'extensions/string_ext .dart' ;
12+ export 'extensions/case_conversions_on_string_ext .dart' ;
1313export './force_obj_to_string.dart' ;
Original file line number Diff line number Diff line change 1010// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1111//.title~
1212
13- extension $StringCaseConversionsStringExtension on String {
13+ extension CaseConversionsOnStringExt on String {
1414 /// Converts the string to UPPER_SNAKE_CASE.
1515 /// Example: 'helloWorld' -> 'HELLO_WORLD'
1616 String toUpperSnakeCase () => toSnakeCase ().toUpperCase ();
Original file line number Diff line number Diff line change 1010// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1111//.title~
1212
13- extension $StringExtension on String {
13+ extension StringExt on String {
1414 /// Returns null if the String is empty, otherwise returns the String.
1515 String ? get nullIfEmpty {
1616 return isEmpty ? null : this ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ String forceObjToString(Object? obj) {
2626}
2727
2828/// An extension method for conveniently calling [forceObjToString] .
29- extension ForceObjToStringOnObjectExtension on Object {
29+ extension ForceObjToStringOnObjectExt on Object {
3030 /// Safely converts this object to a string. See [forceObjToString] .
3131 String forceObjToString () => _forceObjToString (this );
3232}
Original file line number Diff line number Diff line change 1010// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1111//.title~
1212
13- import 'extensions/string_case_conversions_extension .dart' ;
13+ import 'extensions/case_conversions_on_string_ext .dart' ;
1414
1515// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
1616
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ repository: https://github.com/robmllze/df_string
1616funding :
1717 - https://www.buymeacoffee.com/dev_cetera
1818description : A package designed to extend Dart strings by offering additional functionality.
19- version : 0.2.6
19+ version : 0.2.7
2020topics :
2121 - dart
2222 - json
2323 - string
2424 - utility
25- - utils
25+ - tool
2626
2727# # -----------------------------------------------------------------------------
2828
Original file line number Diff line number Diff line change 1+ // --- AI GENERATED TEST ---
2+
13import 'package:df_string/df_string.dart' ;
24import 'package:test/test.dart' ;
35
@@ -43,8 +45,7 @@ void main() {
4345 expect (
4446 input.toSnakeCase (),
4547 isEmpty,
46- reason:
47- 'An empty/whitespace input should result in an empty output string.' ,
48+ reason: 'An empty/whitespace input should result in an empty output string.' ,
4849 );
4950 } else {
5051 // For all non-empty cases, the original logic works perfectly.
You can’t perform that action at this time.
0 commit comments