Commit 7966a06
committed
refactor(path): use null-aware elements in join and absolute
Replace list-based argument validation with individual parameter
validation to avoid list allocation overhead. Use Dart 3.8 null-aware
elements (?expr) in list literals to build filtered lists directly
instead of using whereType<String>().
- Add _validateArgs() that operates on 16 String? arguments directly
- Add _throwArgError() helper for constructing error messages
- Update join() and absolute() to use null-aware elements - Bump SDK constraint to ^3.8.0
Performance improvement: ~2x faster for absolute() operations.1 parent 83154f2 commit 7966a06
3 files changed
Lines changed: 506 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
| |||
0 commit comments