NotificationSettings class

Model for notification settings.

Annotations

Constructors

NotificationSettings({required String title, required String body, String? stopButton, String? icon})
Constructs an instance of NotificationSettings.
const
NotificationSettings.fromJson(Map<String, dynamic> json)
Constructs an instance of NotificationSettings from a JSON object.
factory
NotificationSettings.fromWire(NotificationSettingsWire wire)
Converts from wire datatype.

Properties

body String
Body of the notification to be shown when alarm is triggered.
final
hashCode int
The hash code for this object.
no setteroverride
icon String?
The icon to display on the notification.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopButton String?
The text to display on the stop button of the notification.
final
title String
Title of the notification to be shown when alarm is triggered.
final

Methods

copyWith({String? title, String? body, String? stopButton, String? icon}) NotificationSettings
Creates a copy of this notification settings but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the NotificationSettings instance to a JSON object.
toString() String
A string representation of this object.
override
toWire() → NotificationSettingsWire
Converts to wire datatype which is used for host platform communication.

Operators

operator ==(Object other) bool
The equality operator.
override