show static method

Future<void> show(
  1. BuildContext context, {
  2. required NmCopilotController controller,
  3. String? title,
  4. ValueChanged<Set<String>>? onHighlight,
  5. ValueChanged<List<String>>? onSelectAll,
  6. VoidCallback? onVoice,
})

Shows the sheet.

Implementation

static Future<void> show(
  BuildContext context, {
  required NmCopilotController controller,
  String? title,
  ValueChanged<Set<String>>? onHighlight,
  ValueChanged<List<String>>? onSelectAll,
  VoidCallback? onVoice,
}) => showModalBottomSheet<void>(
  context: context,
  isScrollControlled: true,
  backgroundColor: Colors.transparent,
  builder: (_) => NmCopilotSheet(controller: controller, title: title, onHighlight: onHighlight, onSelectAll: onSelectAll, onVoice: onVoice),
);