toConstructor method

String toConstructor()

Implementation

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