Attribute.fromInt constructor

Attribute.fromInt(
  1. String? key,
  2. int value
)

Create an Attribute from an integer value.

Implementation

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