Skip to content

Commit

Permalink
Merge pull request #177 from Tienisto/patch-1
Browse files Browse the repository at this point in the history
Add CaseStyle.upperSnakeCase
  • Loading branch information
schultek authored Apr 2, 2024
2 parents c720232 + c82e8bb commit 5d8bc01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/dart_mappable/lib/src/case_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class CaseStyle {

/// Transforms to 'FIELDNAME'
static const upperCase = CaseStyle(tail: TextTransform.upperCase);

/// Transforms to 'FIELD_NAME'
static const upperSnakeCase = CaseStyle(tail: TextTransform.upperCase, separator: '_');
}

extension CaseStyleTransform on CaseStyle? {
Expand Down

0 comments on commit 5d8bc01

Please sign in to comment.