intConverter top-level constant Null safety

Converter<int> const intConverter

Converter to convert input to ints.

This attempts to parse the next quoted word in the input as a base-10 integer.

Implementation

const Converter<int> intConverter = Converter<int>(
  convertInt,
  type: CommandOptionType.integer,
);