NewsAndEventsItem class

This class stores the data associated with a News and events item

Constructors

NewsAndEventsItem({String dateAdded, String description, String image, String title, String url})
Constructor
NewsAndEventsItem.fromMap(Map map)
Generate an NewsAndEventsItem from a map, used when retrieving data from the database
factory

Properties

dateAdded String
read / write
description String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
image String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title String
read / write
url String
read / write

Methods

compareTo(NewsAndEventsItem date) int
Used to compare the dates of 2 different news and events items, returning an int representing the item that is most recent
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() Map<String, String>
Generates a map from a NewsAndEventsItem object, used when writing data to the database
toString() String
Returns a string representation of this object.
inherited

Operators

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