You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A CSS length value, with a number and unit component, for use in CSS properties such as `width`, `top`, `padding`, etc.
19
+
/// A CSS length value, with a number and unit component,
20
+
/// for use in CSS properties such as `width`, `top`, `padding`, etc.
20
21
classCssValueimplementsComparable<CssValue> {
21
22
/// The number component of this CSS value.
22
23
///
@@ -28,14 +29,20 @@ class CssValue implements Comparable<CssValue> {
28
29
/// E.g., 'px' for '1px'
29
30
finalString unit;
30
31
31
-
/// Creates a new [CssValue]. If no [unit] is specified, `'px'` is used instead.
32
+
/// Creates a new [CssValue].
33
+
///
34
+
/// If no [unit] is specified, `'px'` is used instead.
32
35
constCssValue(this.number, [this.unit ='px']);
33
36
34
37
/// Parse [source] and return its [CssValue] representation.
35
38
///
36
-
/// Accepts a number optionally followed by a CSS length unit. If no unit is present, `'px'` is used as the unit instead.
39
+
/// Accepts a number optionally followed by a CSS length unit.
40
+
/// If no unit is present, `'px'` is used as the unit instead.
37
41
///
38
-
/// If `source` is not a valid CSS value, the [onError] callback is called with [source] and an error object, and its return value is used instead. If no `onError` is provided, `null` is returned.
42
+
/// If `source` is not a valid CSS value, the [onError] callback
43
+
/// is called with [source] and an error object, and its return
44
+
/// value is used instead. If no `onError` is provided, `null`
0 commit comments