PromptArgument constructor

PromptArgument({
  1. required String name,
  2. String? title,
  3. String? description,
  4. bool? required,
})

Implementation

factory PromptArgument({
  required String name,
  String? title,
  String? description,
  bool? required,
}) => PromptArgument.fromMap({
  Keys.name: name,
  if (title != null) Keys.title: title,
  if (description != null) Keys.description: description,
  if (required != null) Keys.required: required,
});