Announcement class
title with a body intended to be used as an announcement to make to the client in a non-dismissible way.
Constructors
- Announcement.new({required String title, String? body})
-
const
- Announcement.parse(String text)
-
Constructs an Announcement from the provided
text.factory
Properties
- body → String?
-
Optional body of this Announcement.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Indicates whether this Announcement is empty.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Title of this Announcement.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited