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