copyWithConstructorDeclaration method

String copyWithConstructorDeclaration()

Implementation

String copyWithConstructorDeclaration() {
  if (isNullable) {
    return 'Optional<$type?>? $name';
  } else {
    return '$type? $name';
  }
}