- Added `printValue()` method as an extension to `dynamic`

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2025-01-16 11:07:19 +01:00
parent 92f475a8c7
commit b066eace19
5 changed files with 70 additions and 4 deletions
+16
View File
@@ -1,3 +1,19 @@
## 1.2.6
- Added the `printValue()` extension.
The `printValue()` extension can be used to print a value to the console
before returning that same value.
Example:
```dart
// Print the `textTheme` object to the console before returning it
Text(
'Hello, world',
style: Theme.of(context).textTheme.printValue().headlineMedium,
),
```
## 1.2.5
- Null `String`s being manipulated should return `null` instead of an empty `String`