MastodonFilterV1 class

v1 filter (deprecated, scheduled for removal in Mastodon 4.0).

Corresponds to the response from /api/v1/filters. Designed for client-side filtering with a one-filter-per-keyword structure.

Annotations

Constructors

MastodonFilterV1({required String id, required String phrase, required List<String> context, required bool irreversible, required bool wholeWord, DateTime? expiresAt})
const
MastodonFilterV1.fromJson(Map<String, dynamic> json)
factory

Properties

context List<String>
Contexts where the filter is applied (home, notifications, public, thread, account).
final
expiresAt DateTime?
Expiration timestamp. null if permanent.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Internal ID of the filter.
final
irreversible bool
Whether to irreversibly drop matching entities on the server side for home and notifications.
final
phrase String
Text to filter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wholeWord bool
Whether to match using word boundaries.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes to JSON.
toString() String
A string representation of this object.
inherited

Operators

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