Cordova Flashlight in ionic Problem

I am trying to develop an app which needs flashlight functionality For that I add ng-cordova flashlight plugin and write code:

.controller(‘ImageToggleCtrl’, function($scope,$cordovaFlashlight) {
$scope.followBtnImgUrl = ‘img/unnamed.png’;
$scope.toggleImage = function() { /* the toggling logic */

if ($scope.followBtnImgUrl === ‘img/unnamed.png’) {
$scope.followBtnImgUrl = ‘img/unnamed3.png’;
$cordovaFlashlight.switchOn();

    } else {
        $scope.followBtnImgUrl = 'img/unnamed.png';
		 $cordovaFlashlight.switchOff();
    }

};
});

But its not worked. What can I do?
Any helpful?

Regards,
Motiur Rahman