stateType property

String get stateType

State type is always ArgCommandState with the appropriate arg record type For no-arg commands, argRecordType is () (empty record)

Implementation

String get stateType {
  final argRecordType = nonFamilyParams.isEmpty
      ? '()'
      : nonFamilyParams.toRecordType();
  return 'ArgCommandState<$dataType, $argRecordType>';
}