MutedWord class abstract
A word that the account owner has muted.
- Available extensions
- Annotations
-
- @freezed
Constructors
-
MutedWord.new({@Default('app.bsky.actor.defs#mutedWord') String $type, String? id, required String value, @MutedWordTargetConverter() required List<
MutedWordTarget> targets, @MutedWordActorTargetConverter() MutedWordActorTarget? actorTarget, DateTime? expiresAt, Map<String, dynamic> ? $unknown}) -
constfactory
-
MutedWord.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
- actorTarget → MutedWordActorTarget?
-
Groups of users to apply the muted word to. If undefined, applies to all users.
no setterinherited
-
copyWith
→ $MutedWordCopyWith<
MutedWord> -
Create a copy of MutedWord
with the given fields replaced by the non-null parameter values.
no setterinherited
- expiresAt → DateTime?
-
The date and time at which the muted word will expire and no longer be applied.
no setterinherited
- hasActorTarget → bool
-
Available on MutedWord, provided by the MutedWordExtension extension
no setter - hasExpiresAt → bool
-
Available on MutedWord, provided by the MutedWordExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasId → bool
-
Available on MutedWord, provided by the MutedWordExtension extension
no setter - hasNotActorTarget → bool
-
Available on MutedWord, provided by the MutedWordExtension extension
no setter - hasNotExpiresAt → bool
-
Available on MutedWord, provided by the MutedWordExtension extension
no setter - hasNotId → bool
-
Available on MutedWord, provided by the MutedWordExtension extension
no setter - id → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
targets
→ List<
MutedWordTarget> -
no setterinherited
- value → String
-
The muted word itself.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_MutedWord value)) → TResult -
Available on MutedWord, provided by the MutedWordPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_MutedWord value)?) → TResult? -
Available on MutedWord, provided by the MutedWordPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_MutedWord value)?, {required TResult orElse()}) → TResult -
Available on MutedWord, provided by the MutedWordPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, String? id, String value, List< MutedWordTarget> targets, MutedWordActorTarget? actorTarget, DateTime? expiresAt, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on MutedWord, provided by the MutedWordPatterns 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 MutedWord to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, String? id, String value, List< MutedWordTarget> targets, MutedWordActorTarget? actorTarget, DateTime? expiresAt, Map<String, dynamic> ? $unknown)) → TResult -
Available on MutedWord, provided by the MutedWordPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, String? id, String value, List< MutedWordTarget> targets, MutedWordActorTarget? actorTarget, DateTime? expiresAt, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on MutedWord, provided by the MutedWordPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>