UGraphGetRelationshipsRelationshipsPatterns extension

Adds pattern-matching-related methods to UGraphGetRelationshipsRelationships.

on

Methods

map<TResult extends Object?>({required TResult relationship(UGraphGetRelationshipsRelationshipsRelationship value), required TResult notFoundActor(UGraphGetRelationshipsRelationshipsNotFoundActor value), required TResult unknown(UGraphGetRelationshipsRelationshipsUnknown value)}) → TResult

Available on UGraphGetRelationshipsRelationships, provided by the UGraphGetRelationshipsRelationshipsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? relationship(UGraphGetRelationshipsRelationshipsRelationship value)?, TResult? notFoundActor(UGraphGetRelationshipsRelationshipsNotFoundActor value)?, TResult? unknown(UGraphGetRelationshipsRelationshipsUnknown value)?}) → TResult?

Available on UGraphGetRelationshipsRelationships, provided by the UGraphGetRelationshipsRelationshipsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult relationship(UGraphGetRelationshipsRelationshipsRelationship value)?, TResult notFoundActor(UGraphGetRelationshipsRelationshipsNotFoundActor value)?, TResult unknown(UGraphGetRelationshipsRelationshipsUnknown value)?, required TResult orElse()}) → TResult

Available on UGraphGetRelationshipsRelationships, provided by the UGraphGetRelationshipsRelationshipsPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult relationship(Relationship data)?, TResult notFoundActor(NotFoundActor data)?, TResult unknown(Map<String, dynamic> data)?, required TResult orElse()}) → TResult

Available on UGraphGetRelationshipsRelationships, provided by the UGraphGetRelationshipsRelationshipsPatterns extension

A variant of when that fallback to an orElse callback.
when<TResult extends Object?>({required TResult relationship(Relationship data), required TResult notFoundActor(NotFoundActor data), required TResult unknown(Map<String, dynamic> data)}) → TResult

Available on UGraphGetRelationshipsRelationships, provided by the UGraphGetRelationshipsRelationshipsPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? relationship(Relationship data)?, TResult? notFoundActor(NotFoundActor data)?, TResult? unknown(Map<String, dynamic> data)?}) → TResult?

Available on UGraphGetRelationshipsRelationships, provided by the UGraphGetRelationshipsRelationshipsPatterns extension

A variant of when that fallback to returning null