createNotificationChannel method
Creates a notification channel. Uses local repository for channel creation.
Implementation
Future<NotificationFailure?> createNotificationChannel({
required String channelId,
required String channelName,
String? channelDescription,
NotificationImportance? importance,
bool? enableVibration,
bool? enableLights,
String? sound,
}) async {
if (!_isInitialized) {
return NotificationFailure.initialization(
details: 'Notification manager not initialized',
);
}
return _localRepository.createNotificationChannel(
channelId: channelId,
channelName: channelName,
channelDescription: channelDescription,
importance: importance,
enableVibration: enableVibration,
enableLights: enableLights,
sound: sound,
);
}