toConstructor method

String toConstructor()

Implementation

String toConstructor() {
  final nullable = isNullable ? '' : 'required';
  return ModelTemplates.indented('$nullable this.$name,'.trim());
}