when<TResult extends Object?> method

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

Implementation

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