Filters class

Constructors

Filters({List<String> keywords = const [], List<String> regions = const [], List<String> sources = const []})
Returns a new Filters instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
keywords ↔ List<String>
Keywords keeps only items whose TITLE contains one of these, case-insensitively. They are also the GDELT queries the feed fans out to, one per keyword of three characters or more — so a keyword both widens what is fetched and narrows what is kept.
getter/setter pair
regions ↔ List<String>
Regions keeps only items whose TITLE contains one of these, matched case-insensitively as a substring. Empty keeps every region.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sources ↔ List<String>
Sources keeps only items whose outlet name contains one of these, case-insensitively. Empty keeps every outlet.
getter/setter pair

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Filters?
Returns a new Filters instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Filters>
mapFromJson(dynamic json) → Map<String, Filters>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Filters>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.