PromptInput.hosted constructor

const PromptInput.hosted({
  1. Key? key,
  2. required Widget editor,
  3. required Widget actions,
  4. Widget? header,
  5. Widget? contextStrip,
  6. Widget? footer,
  7. EdgeInsetsGeometry padding,
})

Layout-only mode. The host owns its editor subtree, focus, input methods, history, submission, stopping and every action. No controller is created.

Implementation

const factory PromptInput.hosted({
  Key? key,
  required Widget editor,
  required Widget actions,
  Widget? header,
  Widget? contextStrip,
  Widget? footer,
  EdgeInsetsGeometry padding,
}) = _HostedPromptInput;