format method

  1. @override
String format([
  1. InputValues values = const {}
])
override

Format the prompt given the input values and return a formatted string.

  • values - Any arguments to be passed to the prompt template.

Implementation

@override
String format([final InputValues values = const {}]) {
  final allValues = mergePartialAndUserVariables(values);
  return renderTemplate(
    template: template,
    inputValues: allValues,
  );
}