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})
const
factory
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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_MutedWord value)?) → TResult?

Available on MutedWord, provided by the MutedWordPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_MutedWord value)?, {required TResult orElse()}) → TResult

Available on MutedWord, provided by the MutedWordPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse 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

A switch-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 of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

validate(Map<String, dynamic> object) bool

Constants

knownProps → const List<String>