Message class Null safety
A representation of a sticky note.
Constructors
- Message({required String header, required String message, required double x, required double y, required String id, required DateTime from, required DateTime to, required bool scheduled, required String fontFamily, required double fontSize, required int backgrondColour, required int foregroundColour, required double width, required double height, required String textAlignment})
- Constructs a Message instance with the specified customisations.
-
Message.fromJson(Map<
String, Object?> json) - Named constructor to create Message from a Map.
Properties
- backgrondColour → int
-
The background colour of the message.
final
- fontFamily → String
-
The font family of the header and message.
final
- fontSize → double
-
The font size of the header and message.
final
- foregroundColour → int
-
The foreground colour of the message i.e., text colour.
final
- from → DateTime
-
The DateTime from which this message is displayed.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- header → String
-
The content in header.
final
- height → double
-
The height of this message.
final
- id → String
-
The id retrieved of this message, retrieved from storage.
final
- message → String
-
The content in the main body.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- scheduled → bool
-
The scheduling status. [...]
final
- textAlignment → String
-
The text alignment. [...]
final
- to → DateTime
-
The DateTime until which this message is displayed.
final
- width → double
-
The width of this message.
final
- x ↔ double
-
The x position on the screen device.
read / write
- y ↔ double
-
The y position on the screen device.
read / write
Methods
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited