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({
  'name': name,
  if (title != null) 'title': title,
  if (description != null) 'description': description,
  if (required != null) 'required': required,
});