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