whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? messageView(
    1. MessageView data
    )?,
  2. TResult? deletedMessageView(
    1. DeletedMessageView data
    )?,
  3. TResult? unknown(
    1. Map<String, dynamic> data
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(MessageView data)? messageView,
  TResult? Function(DeletedMessageView data)? deletedMessageView,
  TResult? Function(Map<String, dynamic> data)? unknown,
}) =>
    throw _privateConstructorUsedError;