Attribute.counter constructor

Attribute.counter(
  1. String name, {
  2. int value = 0,
})

Implementation

factory Attribute.counter(String name, {int value = 0}) {
  return Attribute._(
      name: name,
      value: value,
      valueType: AttributeValueType.int,
      kind: AttributeKind.counter,
      action: AttributeAction.set
  );
}