NotificationFailure.token constructor

NotificationFailure.token({
  1. String? details,
  2. 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,
  );
}