buildConstructorParameter method Null safety

String buildConstructorParameter(
  1. {bool nullSafety = true}
)

Implementation

String buildConstructorParameter({bool nullSafety = true}) {
  final result = StringBuffer();
  result.write(' ${nullSafety ? '' : '@'}required');
  result.write(' ${isPrivate ? '$type ' : 'this.'}$argumentName');
  return result.toString();
}