getDefaultOptions static method

  1. @Deprecated('Use getDefaultOptionsWithCallback instead. ' 'See CONVERSATIONS_MIGRATION_GUIDE.md for migration instructions.')
List<CometChatOption>? getDefaultOptions(
  1. Conversation conversation,
  2. dynamic controller,
  3. BuildContext context,
  4. CometChatColorPalette colorPalette,
)

Get default options for a conversation

Deprecated: This method previously required a controller parameter. Use getDefaultOptionsWithCallback instead to provide custom delete action.

Implementation

@Deprecated(
  'Use getDefaultOptionsWithCallback instead. '
  'See CONVERSATIONS_MIGRATION_GUIDE.md for migration instructions.'
)
static List<CometChatOption>? getDefaultOptions(
    Conversation conversation,
    dynamic controller,
    BuildContext context,
    CometChatColorPalette colorPalette,
    ) {
  return getDefaultOptionsWithCallback(
    conversation: conversation,
    context: context,
    colorPalette: colorPalette,
    onDelete: null,
  );
}