meter class final

The <meter> HTML element represents either a scalar value within a known range or a fractional value.

Inheritance

Constructors

meter(List<Component> children, {double? value, double? min, double? max, double? low, double? high, double? optimum, String? id, String? classes, Styles? styles, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key})
The <meter> HTML element represents either a scalar value within a known range or a fractional value.
const

Properties

attributes Map<String, String>?
Additional attributes to apply to the HTML element.
final
children List<Component>
The children of this component.
final
classes String?
The CSS classes to apply to the HTML element, separated by whitespace.
final
events Map<String, EventCallback>?
Event listeners to attach to the HTML element.
final
hashCode int
The hash code for this object.
no setterinherited
high double?
The lower numeric bound of the high end of the measured range. This must be less than the maximum value (max attribute), and it also must be greater than the low value and minimum value (low attribute and min attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the high value is equal to the maximum value.
final
id String?
The id of the HTML element. Must be unique within the document.
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
low double?
The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (min attribute), and it also must be less than the high value and maximum value (high attribute and max attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the low value is equal to the minimum value.
final
max double?
The upper numeric bound of the measured range. This must be greater than the minimum value (min attribute), if specified. If unspecified, the maximum value is 1.
final
min double?
The lower numeric bound of the measured range. This must be less than the maximum value (max attribute), if specified. If unspecified, the minimum value is 0.
final
optimum double?
Indicates the optimal numeric value. It must be within the range (as defined by the min attribute and max attribute). When used with the low attribute and high attribute, it gives an indication where along the range is considered preferable. For example, if it is between the min attribute and the low attribute, then the lower range is considered preferred. The browser may color the meter's bar differently depending on whether the value is less than or equal to the optimum value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styles Styles?
The inline styles to apply to the HTML element.
final
value double?
The current numeric value. This must be between the minimum and maximum values (min attribute and max attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the min attribute and max attribute, the value is equal to the nearest end of the range.
final

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited