checkPermission method
Checking permission
Implementation
checkPermission(
bool isFromPicker, PermissionType permissionType, int index) async {
PermissionStatus _permissionStatus = PermissionStatus.denied;
askForPermission(
_permissionStatus,
isFromPicker,
permissionType,
index,
);
}