updateLink method
- DirectLinkSlug slug,
- UserId? userId
override
Creates, updates or disabled the specified DirectLink owned by the authenticated MyUser.
Implementation
@override
Future<void> updateLink(DirectLinkSlug slug, UserId? userId) async {
final mixin = await _graphQlProvider.updateDirectLink(
slug,
userId == null ? null : DirectLinkLocationInput(userId: userId),
);
if (mixin != null) {
final DirectLinkEventsEvent events = DirectLinkEventsEvent(
DirectLinkEventsVersioned(
mixin.events.map(_directLinkRemoteEvent).toList(),
mixin.ver,
),
);
await _directLinksEvent(events);
}
}