whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult? checkChatId(
- BuildContext context,
- int sellerId
- TResult? sendImage(
- BuildContext context,
- String file,
- String? chatId
- TResult? sendMessage(
- BuildContext context,
- String message,
- String? chatId
- TResult? editMessage(
- BuildContext context,
- String message,
- String messageId,
- String? chatId,
- TResult? replyMessage(
- BuildContext context,
- String message,
- String messageId,
- String? chatId,
- TResult? deleteMessage(
- BuildContext context,
- String messageId,
- String? chatId
- TResult? createAndSendMessage(
- BuildContext context,
- String message,
- int userId,
- Function onSuccess,
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(BuildContext context, int sellerId)? checkChatId,
TResult? Function(BuildContext context, String file, String? chatId)?
sendImage,
TResult? Function(BuildContext context, String message, String? chatId)?
sendMessage,
TResult? Function(BuildContext context, String message, String messageId,
String? chatId)?
editMessage,
TResult? Function(BuildContext context, String message, String messageId,
String? chatId)?
replyMessage,
TResult? Function(BuildContext context, String messageId, String? chatId)?
deleteMessage,
TResult? Function(BuildContext context, String message, int userId,
Function onSuccess)?
createAndSendMessage,
}) =>
throw _privateConstructorUsedError;