NotificationFailure class

Custom failure class for notification-related errors.

Constructors

NotificationFailure({required String message, String? code, String? details, StackTrace? stackTrace})
Creates a new notification failure.
const
NotificationFailure.cancellation({String? details, StackTrace? stackTrace})
Creates a notification failure for cancellation errors.
factory
NotificationFailure.channel({String? details, StackTrace? stackTrace})
Creates a notification failure for channel errors.
factory
NotificationFailure.configuration({String? details, StackTrace? stackTrace})
Creates a notification failure for configuration errors.
factory
NotificationFailure.delivery({String? details, StackTrace? stackTrace})
Creates a notification failure for delivery errors.
factory
NotificationFailure.initialization({String? details, StackTrace? stackTrace})
Creates a notification failure for initialization errors.
factory
NotificationFailure.invalidInput({String? details, StackTrace? stackTrace})
Creates a notification failure for invalid input errors.
factory
NotificationFailure.network({String? details, StackTrace? stackTrace})
Creates a notification failure for network errors.
factory
NotificationFailure.permission({String? details, StackTrace? stackTrace})
Creates a notification failure for permission errors.
factory
NotificationFailure.platform({String? details, StackTrace? stackTrace})
Creates a notification failure for platform errors.
factory
NotificationFailure.scheduling({String? details, StackTrace? stackTrace})
Creates a notification failure for scheduling errors.
factory
NotificationFailure.token({String? details, StackTrace? stackTrace})
Creates a notification failure for token errors.
factory
NotificationFailure.unknown({String? message, String? details, StackTrace? stackTrace})
Creates a notification failure for unknown errors.
factory

Properties

code → String?
The error code.
final
details → String?
Additional error details.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
The error message.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The stack trace when the error occurred.
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

fromJson(String json) → NotificationFailure
Converts the object from a JSON string representation.
inherited
fromMap(Map<String, dynamic> map) → NotificationFailure
Converts the object from a Map representation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Converts the object to a JSON string representation.
inherited
toMap() → Map<String, dynamic>
Converts the BaseDataModel object to a Map representation.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited