Skip to content

Commit b3a8ad8

Browse files
committed
Fix format
1 parent 4ce4adc commit b3a8ad8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/netglade_utils/lib/src/extensions/string_extensions.dart

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ extension StringExtensions on String {
1010
/// - '\t'
1111
///
1212
/// When you only need to check exactly empty, use `isEmpty`.
13-
///
13+
///
1414
/// * String is blank when it contains only whitespaces.
1515
bool get isBlank => trim().isEmpty;
1616

1717
/// Returns negation of [isBlank].
18+
///
19+
/// * String is blank when it contains only whitespaces.
1820
bool get isNotBlank => !isBlank;
1921

2022
/// Returns last N characters.
@@ -27,18 +29,22 @@ extension StringExtensions on String {
2729
extension NullableStringExtensions on String? {
2830
/// Returns true when `this` is `String` which is `isBlank`.
2931
/// When the value is `null`, returns `false`.
30-
///
31-
/// * String? is blank when it has a value and contains only whitespaces.
32+
///
33+
/// * String? is blank when it has a value and contains only whitespaces.
3234
bool get isBlank {
3335
return this?.isBlank ?? false;
3436
}
3537

3638
/// Returns true when `this` is either `null` or `isBlank`.
39+
///
40+
/// * String? is blank when it has a value and contains only whitespaces.
3741
bool get isNullOrBlank {
3842
return this?.isBlank ?? true;
3943
}
4044

4145
/// Returns negation of [isBlank].
46+
///
47+
/// * String? is blank when it has a value and contains only whitespaces.
4248
bool get isNotBlank {
4349
return !isBlank;
4450
}

0 commit comments

Comments
 (0)