Attribute.fromDouble constructor

Attribute.fromDouble(
  1. String? key,
  2. double value
)

Create an Attribute from a double-precision floating-point value.

Implementation

Attribute.fromDouble(this.key, double this.value) {
  if (key == null) {
    throw ArgumentError("key can't be null.");
  }
}