required property

String get required

Implementation

String get required {
  return generationOptions.nnbd ? 'required' : '@required';
}