[READ ONLY MIRROR] Open Source TikTok alternative built on AT Protocol github.com/sprksocial/client
flutter atproto video dart
Something went wrong. Try again.
1234567891011121314151617181920212223import 'package:sprk_poptart/so/sprk/actor/defs.dart';
/// Checks if the viewer is blocking the profilebool isBlocking(ViewerState? viewer) { return viewer?.blocking != null;}
/// Checks if the viewer is blocked by the profilebool isBlockedBy(ViewerState? viewer) { return viewer?.blockedBy ?? false;}
/// Checks if there is any block relationship (either direction)bool isBlocked(ViewerState? viewer) { return isBlocking(viewer) || isBlockedBy(viewer);}
/// Determines if the follow button should be shown/// Returns false if the viewer is blocked by the profilebool shouldShowFollowButton(ViewerState? viewer) { return !isBlockedBy(viewer);}