Fact class Null safety
A class to hold information of a Factcheck.
Constructors
- Fact(String factText, String factAuthor, int factYear, int factMonth, int factDay, String factLanguage, String factLink, String factMedia, String? objectId, String? factArchivedLink)
- Default constructor.
- Fact.empty()
- Construct an empty Fact.
-
Fact.fromMap(Map<
String, dynamic> ? map) - Construct a Fact from a Map containing all fields of the Fact.
Properties
- factArchivedLink ↔ String?
-
An archived version of the link to the factcheck.
read / write
- factAuthor ↔ String
-
The author.
read / write
- factDay ↔ int
-
The day of publication.
read / write
- factLanguage ↔ String
-
The language of the factcheck article.
read / write
- factLink ↔ String
-
The link to the factcheck.
read / write
- factMedia ↔ String
-
The media publishing the factcheck.
read / write
- factMonth ↔ int
-
The month of publication.
read / write
- factText ↔ String
-
The summary of the factcheck.
read / write
- factYear ↔ int
-
The year of publication.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- objectId ↔ String?
-
The ID of the factcheck in the database.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
dateAsString(
) → String - Return the Fact.factDay, Fact.factMonth and Fact.factYear as String like so dd/mm/yyyy. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map< String, dynamic> - Convert a Fact back to its Map representation.
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited