integer static method

MixProtocolValueCodec<int> integer({
  1. int? min,
  2. int? max,
})

Integer JSON values.

Implementation

static MixProtocolValueCodec<int> integer({int? min, int? max}) {
  var schema = Ack.integer();
  if (min != null) schema = schema.min(min);
  if (max != null) schema = schema.max(max);

  return MixProtocolValueCodec._(schema as AckSchema<Object, int>);
}