mirror of
https://github.com/hanskokx/arcane_helper_utils.git
synced 2026-05-14 02:19:09 +02:00
v1.2.6
- Added `printValue()` method as an extension to `dynamic` Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user