ProfileView class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ProfileView.new({@Default('app.bsky.actor.defs#profileView') String $type, required String did, required String handle, String? displayName, String? description, @AtUriConverter() AtUri? avatar, @ProfileAssociatedConverter() ProfileAssociated? associated, DateTime? indexedAt, DateTime? createdAt, @ViewerStateConverter() ViewerState? viewer, @LabelConverter() List<
Label> ? labels, @VerificationStateConverter() VerificationState? verification, @StatusViewConverter() StatusView? status, Map<String, dynamic> ? $unknown}) -
constfactory
-
ProfileView.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
- associated → ProfileAssociated?
-
no setterinherited
- avatar → AtUri?
-
no setterinherited
-
copyWith
→ $ProfileViewCopyWith<
ProfileView> -
Create a copy of ProfileView
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime?
-
no setterinherited
- description → String?
-
no setterinherited
- did → String
-
no setterinherited
- displayName → String?
-
no setterinherited
- handle → String
-
no setterinherited
- hasAssociated → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasAvatar → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasCreatedAt → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasDescription → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasDisplayName → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasIndexedAt → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotAssociated → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotAvatar → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotCreatedAt → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotDescription → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotDisplayName → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotIndexedAt → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotStatus → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotVerification → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasNotViewer → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasStatus → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasVerification → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - hasViewer → bool
-
Available on ProfileView, provided by the ProfileViewExtension extension
no setter - indexedAt → DateTime?
-
no setterinherited
-
labels
→ List<
Label> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → StatusView?
-
no setterinherited
- verification → VerificationState?
-
no setterinherited
- viewer → ViewerState?
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ProfileView value)) → TResult -
Available on ProfileView, provided by the ProfileViewPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ProfileView value)?) → TResult? -
Available on ProfileView, provided by the ProfileViewPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ProfileView value)?, {required TResult orElse()}) → TResult -
Available on ProfileView, provided by the ProfileViewPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, String did, String handle, String? displayName, String? description, AtUri? avatar, ProfileAssociated? associated, DateTime? indexedAt, DateTime? createdAt, ViewerState? viewer, List< Label> ? labels, VerificationState? verification, StatusView? status, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ProfileView, provided by the ProfileViewPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ProfileView to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, String did, String handle, String? displayName, String? description, AtUri? avatar, ProfileAssociated? associated, DateTime? indexedAt, DateTime? createdAt, ViewerState? viewer, List< Label> ? labels, VerificationState? verification, StatusView? status, Map<String, dynamic> ? $unknown)) → TResult -
Available on ProfileView, provided by the ProfileViewPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, String did, String handle, String? displayName, String? description, AtUri? avatar, ProfileAssociated? associated, DateTime? indexedAt, DateTime? createdAt, ViewerState? viewer, List< Label> ? labels, VerificationState? verification, StatusView? status, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on ProfileView, provided by the ProfileViewPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>