This repository was archived by the owner on May 20, 2023. It is now read-only.
File tree 1 file changed +3
-5
lines changed
lib/utils/angular/properties 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,15 @@ bool getBool(inputValue) {
51
51
inputValue, 'inputValue' , 'Expected a String, or bool type' );
52
52
}
53
53
54
- /// Parses html attribute [String] to a [bool] .
54
+ /// Parses HTML attribute [String] to a [bool] .
55
55
///
56
56
/// Should be used to parse values passed to @Attribute constructor argument.
57
57
///
58
- /// This does not fully follow the HTML boolean attribute definition
58
+ /// This does not follow the HTML boolean attribute definition
59
59
/// (https://stackoverflow.com/a/4139805), as 'false' String will be parsed
60
60
/// to false value.
61
61
///
62
- /// When no attribute is present [defaultValue] value is returned (by default
63
- /// false).
62
+ /// When no attribute is present [defaultValue] value is returned.
64
63
///
65
64
/// NOTE: no attribute is not the same as no value for attribute:
66
65
///
@@ -76,7 +75,6 @@ bool attributeToBool(String inputValue, {bool defaultValue: false}) {
76
75
///
77
76
/// If [inputValue] is an [int] , returns it.
78
77
/// If [inputValue] is a `null` , returns [defaultValue] .
79
- /// If [inputValue] is a String, parses using [onString] , or uses [int.parse] .
80
78
int getInt (inputValue, {int defaultValue: 0 }) {
81
79
if (inputValue == null ) {
82
80
return defaultValue;
You can’t perform that action at this time.
0 commit comments