setOptions property

List<CometChatOption>? Function(User user, UsersBloc bloc, BuildContext context)? setOptions
final

setOptions sets the list of actions a long press on a user offers. When it is set, addOptions is ignored, as on Android. Starting a long-press selection comes first, then onItemLongPress, when set, takes the long press instead.

Implementation

final List<CometChatOption>? Function(
  User user,
  UsersBloc bloc,
  BuildContext context,
)?
setOptions;