buildConstructorInitializers method Null safety

List<String> buildConstructorInitializers(
  1. {bool nullSafety = true}
)

Implementation

List<String> buildConstructorInitializers({bool nullSafety = true}) {
  return [
    if (!nullSafety) 'assert($argumentName != null)',
    if (isPrivate) '$fieldName = $argumentName',
  ];
}