NotificationFailure.cancellation constructor
NotificationFailure.cancellation({
- String? details,
- StackTrace? stackTrace,
Creates a notification failure for cancellation errors.
Implementation
factory NotificationFailure.cancellation({
String? details,
StackTrace? stackTrace,
}) {
return NotificationFailure(
message: 'Failed to cancel notification',
code: 'CANCELLATION_ERROR',
details: details,
stackTrace: stackTrace,
);
}