handleMethodCall method
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'initialize':
return await _handleInitialize(call.arguments);
case 'showNotification':
return await _handleShowNotification(call.arguments);
case 'scheduleNotification':
return await _handleScheduleNotification(call.arguments);
case 'cancelNotification':
return await _handleCancelNotification(call.arguments);
case 'cancelAllNotifications':
return await _handleCancelAllNotifications(call.arguments);
case 'getPendingNotifications':
return await _handleGetPendingNotifications(call.arguments);
case 'areNotificationsEnabled':
return await _handleAreNotificationsEnabled(call.arguments);
case 'requestPermissions':
return await _handleRequestPermissions(call.arguments);
default:
throw PlatformException(
code: 'Unimplemented',
details:
'flutter_local_notification_plus_web for web doesn\'t implement \'${call.method}\'',
);
}
}