maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult facetMention(
    1. FacetMention data
    )?,
  2. TResult facetLink(
    1. FacetLink data
    )?,
  3. TResult facetTag(
    1. FacetTag data
    )?,
  4. TResult unknown(
    1. Map<String, dynamic> data
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(FacetMention data)? facetMention,
  TResult Function(FacetLink data)? facetLink,
  TResult Function(FacetTag data)? facetTag,
  TResult Function(Map<String, dynamic> data)? unknown,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;