Statement class Null safety

A class to hold information of a Statement.

Constructors

Statement(String statementText, String statementAuthor, String statementCategory, String statementCorrectness, int statementYear, int statementMonth, int statementDay, Facts statementFactchecks, String statementLanguage, String statementLink, String statementMedia, String statementMediatype, String? statementPictureURL, String samplePictureCopyright, bool statementRectification, String? objectId)
Default constructor.
Statement.empty()
Construct an empty Statement.
Statement.fromMap(Map<String, dynamic>? map)
Construct a Statement from a Map containing all fields of the Statement.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
objectId String?
The ID of the statement in the database.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
samplePictureCopyright String
The copyright text of the Statement.statementPictureURL.
read / write
statementAuthor String
The Author of the statement.
read / write
statementCategory String
The Category of the statement. One of DropdownValues.categoryValues.
read / write
statementCorrectness String
The correctness of the statement. One of DropdownValues.correctnessValues.
read / write
statementDay int
The Day of the statement publication.
read / write
statementFactchecks Facts
The Facts of the statement.
read / write
statementLanguage String
The Language of the statement.
read / write
The Link to the statement, mostly an archived link.
read / write
statementMedia String
The Media publishing the statement.
read / write
statementMediatype String
The Mediatype of the statement.
read / write
statementMonth int
The Month of the statement publication.
read / write
statementPictureURL String?
The URL to a picture describing the statement.
read / write
statementRectification bool
Stores if the statement was corrected.
read / write
statementText String
The claim of the statement.
read / write
statementYear int
The Year of the statement publication.
read / write
uploadImage Uint8List?
An image to be uploaded stored as bytes.
read / write

Methods

dateAsString() String
Return the Statement.statementDay, Statement.statementMonth and Statement.statementYear as String like so dd/mm/yyyy. [...]
isComplete() bool
Checks if all neccessary fields of the Statement are filled in.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() Map<String, dynamic>
Convert a Statement back to its Map representation.
toString() String
A string representation of this object. [...]
inherited

Operators

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