StatusView class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
StatusView.new({@Default('app.bsky.actor.defs#statusView') String $type, @StatusViewStatusConverter() required StatusViewStatus status, required Map<
String, dynamic> record, @UStatusViewEmbedConverter() UStatusViewEmbed? embed, DateTime? expiresAt, bool? isActive, Map<String, dynamic> ? $unknown}) -
constfactory
-
StatusView.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
-
copyWith
→ $StatusViewCopyWith<
StatusView> -
Create a copy of StatusView
with the given fields replaced by the non-null parameter values.
no setterinherited
- embed → UStatusViewEmbed?
-
no setterinherited
- expiresAt → DateTime?
-
The date when this status will expire. The application might choose to no longer return the status after expiration.
no setterinherited
- hasEmbed → bool
-
Available on StatusView, provided by the StatusViewExtension extension
no setter - hasExpiresAt → bool
-
Available on StatusView, provided by the StatusViewExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasNotEmbed → bool
-
Available on StatusView, provided by the StatusViewExtension extension
no setter - hasNotExpiresAt → bool
-
Available on StatusView, provided by the StatusViewExtension extension
no setter - isActive → bool?
-
True if the status is not expired, false if it is expired. Only present if expiration was set.
no setterinherited
- isIsActive → bool
-
Available on StatusView, provided by the StatusViewExtension extension
no setter - isNotIsActive → bool
-
Available on StatusView, provided by the StatusViewExtension extension
no setter -
record
→ Map<
String, dynamic> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → StatusViewStatus
-
The status for the account.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_StatusView value)) → TResult -
Available on StatusView, provided by the StatusViewPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_StatusView value)?) → TResult? -
Available on StatusView, provided by the StatusViewPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_StatusView value)?, {required TResult orElse()}) → TResult -
Available on StatusView, provided by the StatusViewPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, StatusViewStatus status, Map< String, dynamic> record, UStatusViewEmbed? embed, DateTime? expiresAt, bool? isActive, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on StatusView, provided by the StatusViewPatterns 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 StatusView to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, StatusViewStatus status, Map< String, dynamic> record, UStatusViewEmbed? embed, DateTime? expiresAt, bool? isActive, Map<String, dynamic> ? $unknown)) → TResult -
Available on StatusView, provided by the StatusViewPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, StatusViewStatus status, Map< String, dynamic> record, UStatusViewEmbed? embed, DateTime? expiresAt, bool? isActive, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on StatusView, provided by the StatusViewPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>