variablesList static method

String variablesList(
  1. List<Variable> variables
)

Implementation

static String variablesList(List<Variable> variables) {
  GeneratorLog.info(title: 'Class generation Commenting');
  String print = AddCode.addCommentLine('Variables List:');
  for (Variable variable in variables) {
    print += AddCode.addCommentLine('  ${variable.name}:');
    print += AddCode.addCommentLine('==>    typeString: ${variable.typeString}');
    print += AddCode.addCommentLine('==>    type: ${variable.type}');
    print += AddCode.addCommentLine('==>    isCoreType: ${variable.isCoreType}');
    print += AddCode.addCommentLine('==>    isNullable: ${variable.isNullable}');
    print += AddCode.addCommentLine('==>    isFinal: ${variable.isFinal}');
    print += AddCode.addCommentLine('==>    hasRequired: ${variable.hasRequired}');
    print += AddCode.addCommentLine('==>    isEnum: ${variable.isEnum}');
  }
  return print;
}