Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 9e379de

Browse files
rkjnshahan
authored andcommitted
Remove misleading part of the doccomment.
Context: #208 (review) Not sure about renaming the method, I doubt we need the html version. PiperOrigin-RevId: 182801890
1 parent 491d22c commit 9e379de

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/utils/angular/properties/properties.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,15 @@ bool getBool(inputValue) {
5151
inputValue, 'inputValue', 'Expected a String, or bool type');
5252
}
5353

54-
/// Parses html attribute [String] to a [bool].
54+
/// Parses HTML attribute [String] to a [bool].
5555
///
5656
/// Should be used to parse values passed to @Attribute constructor argument.
5757
///
58-
/// This does not fully follow the HTML boolean attribute definition
58+
/// This does not follow the HTML boolean attribute definition
5959
/// (https://stackoverflow.com/a/4139805), as 'false' String will be parsed
6060
/// to false value.
6161
///
62-
/// When no attribute is present [defaultValue] value is returned (by default
63-
/// false).
62+
/// When no attribute is present [defaultValue] value is returned.
6463
///
6564
/// NOTE: no attribute is not the same as no value for attribute:
6665
///
@@ -76,7 +75,6 @@ bool attributeToBool(String inputValue, {bool defaultValue: false}) {
7675
///
7776
/// If [inputValue] is an [int], returns it.
7877
/// If [inputValue] is a `null`, returns [defaultValue].
79-
/// If [inputValue] is a String, parses using [onString], or uses [int.parse].
8078
int getInt(inputValue, {int defaultValue: 0}) {
8179
if (inputValue == null) {
8280
return defaultValue;

0 commit comments

Comments
 (0)