getArgumentType static method
- Argument argument
Retrieves the type of an argument in a human-readable format.
argument
The argument to get the type for.
Returns a string describing the argument type.
Implementation
static String getArgumentType(Argument<dynamic> argument) {
switch (argument.getType()) {
case ArgumentType.STRING:
return 'string';
case ArgumentType.INTEGER:
return 'integer';
case ArgumentType.BOOL:
return 'boolean';
case ArgumentType.DOUBLE:
return 'double';
}
}