Bin class Null safety

A bin is a discrete portion of data spanning from start to end, or if no end is given, then from start to +inf.

A bin's start and end values are given in the value type of the metric it represents. For example, "first contentful paint" is measured in milliseconds and exposed as ints, therefore its metric bins will use int32s for its start and end types. However, "cumulative layout shift" is measured in unitless decimals and is exposed as a decimal encoded as a string, therefore its metric bins will use strings for its value type.

Constructors

Bin({double? density, Object? end, Object? start})
Bin.fromJson(Map _json)

Properties

density double?
The proportion of users that experienced this bin's value for the given metric.
read / write
end Object?
End is the end of the data bin. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
start Object?
Start is the beginning of the data bin. [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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